Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// 7. useful skills
- #include<bits/stdc++.h>
- #define int long long // This is very useful on competitive programming
- using namespace std;
- signed main(){
- int n;
- cin >> n;
- while(n--){
- // this loop will repeat (n) times
- // WARNING: The value of (n) will be changed during the loop is running
- }
- while(cin >> n){
- // this loop will repeatly ask you to input value of (n)
- // until you insert the EOF
- }
- while(cin >> n){
- // this loop will always running until you input value 0
- }
- /// ** Don't forget to add ';' at the end of the statement **
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement