Tuesday, February 7, 2017

Sugar Vs Honey Calories Program(full ready to compile)

#include<iostream>
#include<stdio.h>
using namespace std;

int main()
{
int a;
    cout<< "Calories in one table spoon (4.2g) of sugar=16 cal"<< endl;
 
    cout<< "calories in one table spoon (7g) of honey=21 cal"<< endl;
 
cout<< "****************************" << "\n"
         << "*Numb of calories*" << "\n"
         << "****************************" << "\n"<< endl;
         cin >> a;
     cout << "numb of calories in given tablespoon of sugar is = " << a*16 << "\n";
     cout << "numb of calories in given tablespoon of honey is = " << a*21 << "\n";
   
     cout<< "******************" << "\n"
    << "Regards Talha Ch"<< "\n"
    << "******************" << "\n"
       << endl;
}

0 comments:

Post a Comment