Advertisement
Felanpro

Taking in multiple data in one cin statement

Aug 9th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <vector>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     int x;
  10.     int y;
  11.     int z;
  12.  
  13.     cin >> x >> y >> z;
  14.  
  15.     cout << x << " " << y << " " << z << endl;
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement