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?
1
Expert's answer
2013-02-19T09:17:53-0500
#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 the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS