-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloops.java
38 lines (28 loc) · 841 Bytes
/
loops.java
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
public class loops {
public static void main(String args[]) {
//counter++ => counter = counter + 1
for(int counter = 0; counter < 6; counter++) {
System.out.print(counter+" ");
}
// for (int i = 0; i < 23; i++) {
// System.out.print(i+ " ");
// }
// int i = 0;
// while(i < 11) {
// System.out.println(i);
// i = i + 1;
// }
// int i = 0;
// do {
// System.out.println(i);
// i = i + 1;
// } while(i < 11);
// int i = 12;
// while(i < 11) {
// System.out.println("PRASHANT SINGH");
// }
// do {
// System.out.println("PRASHANT SINGH");
// } while(i < 11);
}
}