Using cin Object to Read Integer Values from Keyboard
#include <iostream>
using namespace std;
int main(){
int a = 0, b = 0, c = 0;
cout << "Enter values for a, b, and c: ";
cin >> a >> b >> c;
cout << a << " " << b << " " << c << endl;
return 0;
}
Related examples in the same category