TOTAL WEIGHT
0
September 23, 2022
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);