-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpractice.cpp
More file actions
43 lines (36 loc) · 822 Bytes
/
practice.cpp
File metadata and controls
43 lines (36 loc) · 822 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <iostream>
using namespace std;
int main()
{
/*for(int i = 0; i<=10 ;i++){
cout << "Hello World " << i << endl;
}*/
/* int i = 0;
while(i<=10){
cout << "Hello World "<< i << endl;
i++;
} */
/* int i = 0;
do{
cout << "Hello World "<< i << endl;
i++;
} while(i>=10); */
/* for( int i=0 ; i<=25 ; i++){
for ( int j=0;j<=i;j++){
cout << j << " " ;
}
cout << endl;
} */
/* for( int i = 10; i >=0 ;i--){
for ( int j = 10;j>=i ; j--){
cout << i << " ";
}
cout << endl;
} */
/* for( int i = 10 ; i>=0; i-- ){
for(int j = 10 ; j>=i ; j--){
cout << j << " ";
}
cout << endl;} */
return 0;
}