Advertisement
pdpd123

Untitled

Feb 18th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. /// 7. useful skills
  2.  
  3. #include<bits/stdc++.h>
  4. #define int long long // This is very useful on competitive programming
  5. using namespace std;
  6.  
  7. signed main(){
  8.  
  9.     int n;
  10.     cin >> n;
  11.     while(n--){
  12.         // this loop will repeat (n) times
  13.         // WARNING: The value of (n) will be changed during the loop is running
  14.     }
  15.  
  16.     while(cin >> n){
  17.         // this loop will repeatly ask you to input value of (n)
  18.         // until you insert the EOF
  19.     }
  20.  
  21.     while(cin >> n){
  22.         // this loop will always running until you input value 0
  23.     }
  24.  
  25.     /// ** Don't forget to add ';' at the end of the statement **
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement