Write an appropriate c++ statement for each of the following:
(1)- read the values of a, b and c.
(2)- write the values of a and b in one line followed by the values of c on another line.
(3)- write the values of a and b in one line separated by blanks and values of c after two blanks lines.
Answers
Answered by
5
#include <iostream>
#include <string>
using namespace std;
int main () {
int a,b,c;
cout << "Enter the values of a, b and c ";
cin >> a >> b >> c;
cout << a << " " << b << endl;
cout << endl << c;
}
Similar questions