TOTAL WEIGHT

float a,o,b; printf("weight of each fruits-"); scanf("%f%f%f",&a,&o,&b); float A=a*120; float O=o*60; float B=b*80; float e=a+o+b; float f=A+O+B; printf("Total weight-%f\n",e); printf("Total cost of apples-%f\n",A); printf("Total cost of oranges-%f\n",O); printf("Total cost of bananas-%f\n",B); printf("TOTAL--%f\n",f);

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.