Advertisement
Glenpl

Untitled

Jun 16th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.09 KB | None | 0 0
  1. int x, sum = 0;
  2. while ( std::cin.peek() != 27 /* ESC */ )
  3. {
  4.     std::cin>>x;
  5.     sum += x;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement