Author: Not specified Language: c
Description: Not specified Timestamp: 2017-09-21 18:12:34 +0000
View raw paste Reply
  1. int main()
  2. {
  3. float rice, sugar, total;
  4. float ricePrice, sugarPrice;
  5. printf("Weight of rice in kilograms\n");
  6. scanf("%f", &rice);
  7. printf("Weight of sugar in kilograms\n");
  8. scanf("%f", &sugar);
  9. ricePrice = rice * 16.75;
  10. sugarPrice = sugar * 15.00;
  11. printf("***LIST OF ITEMS***\n");
  12. printf("Rice    Rs %f\n", ricePrice);
  13. printf("Sugar   Rs %f\n", sugarPrice);
  14. }
View raw paste Reply