Program to enter the unit reading and output the customer’s
telephone
#include <iostream>
using namespace std;
int main(){
float a,b;
cout
<< "Enter how
many min you talk"
<< endl;
cin
>> a;
cout
<< "Enter how
many sec you talk"
<< endl;
cin
>> b;
a = a*60;
b = (a /
100) + (b*0.01);
cout
<< "Telephone
Bill is RS."
<< b << endl;
system("pause");
return 0;
}
Comments
Post a Comment