-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforLoops.cpp
More file actions
27 lines (27 loc) · 805 Bytes
/
Copy pathforLoops.cpp
File metadata and controls
27 lines (27 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <iostream>
#include <string>
using namespace std;
int main() {
cout <<"DOES THIS WORK?"<< endl;
for(int i=0; i<4; i++){
cout <<"This will repeat 4 times ... hopefully!"<< endl;
if(i==2){
cout <<"Here is something in-between!!!"<< endl;
}
}
for(int a=0; a<4; a++){
cout <<"Now this will repeat 4 times... probably!!!"<< endl;
}
for(int s=0; s<4; s++){
cout <<"HELP!!!"<< endl;
for(int j=0; j<4; j++){
cout <<"Can't forget about nested loops! This will repeat a bunch times"<< endl;
for(int k=0; k<4; k++){
cout <<"I hope you like this sentence, it'll appear a lot!!!"<< endl;
if(k==2){
cout <<"Don't worry you're almost done!!!"<< endl;
}
}
}
}
}