Dude, your fucking programming! Lab2Q2

DYFP – LAB2Q2

 

 

 

 

 

 

#include <stdio.h>

//a program to enter in different types of values and then prints that shit to screen.

void main(){

printf(“********Dude, your fucking programming!*********\n”);
printf(“”);
printf(“”);
printf(“”);

//variables
int mattdamon;
int mattdamon2;
char billybaldwin;
float floater;

//inputing values
printf(“Enter a number…:”);
scanf(“%d”, &mattdamon);
printf(“\nEnter number 2…:”);
scanf(“%d”, &mattdamon2);
printf(“\nEnter a char…:”);
scanf(” %c”, &billybaldwin);
printf(“\nEnter a floating number…:”);
scanf(“%f”, &floater);

//output
printf(“”);
printf(“*****OUTPUT********\n”);
printf(“”);
printf(“Number 1 = %d\n”, mattdamon);
printf(“Number 2 = %d\n”, mattdamon2);
printf(“Char 1 = %c\n”, billybaldwin);
printf(“Floater = %f\n”, floater);

}

Leave a Reply

Your email address will not be published. Required fields are marked *