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; }
Comments
Leave a comment