63 200
Assignments Done
99,3%
Successfully Done
In July 2018

Answer to Question #24598 in C++ for bhupendra salvi

Question #24598
answer this question?[report abuse] Write a program in c plus plus to read the names of users and numbers of units consumed and print out the charges with names?
Expert's answer
#include <iostream>

#include <conio.h>
using namespace std;

int main()
{
char username[50];
double numbersofunitsconsumed;
cout<<"Enter user name: ";
cin>>username;
cout<<"Enter numbers of units consumed: ";
cin>>numbersofunitsconsumed;
cout<<username<<" "<<numbersofunitsconsumed;
getch();
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions