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>
Get Free Quote!
346 Experts Online