Submit a screenshot of the executed program and the code of the program.
Writing C Program(s) Using Variables, Declaration Statements & Basic C Data Types
int main()
{
float cup,ounce,pint,tablespoon,
printf("Enter the number of cups : ");
scanf("%f",&cup);
ounce=8*cup;
tablespoon=16*cup;
teaspoon=48*cup;
pint=cup/2;
printf("Volume of %g cup in pint is : %gn",cup,pint);
printf("Volume of %g cup in ounce is : %gn",cup,ounce);
printf("Volume of %g cup in tablespoon is: %gn",cup,tablespoon);
printf("Volume of %g cup in teaspoon is : %gn",cup,teaspoon);
return 0;
I cannot get it to run on Microsoft Visual Studio Express. I need it to show the same as last week.
Complete and submit Programming Exercise #8 listed on Page 97 of your textbook. Use of C compiler and submission of compiled version of your C program is required to receive credits.
Submit a screenshot of the executed program and the code of the program.
Submit a screenshot of the executed program and the code of the program.
#include<stdio.h>
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |