- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudentGradeLoop.java
More file actions
Latest commit
27 lines (21 loc) · 612 Bytes
/
Copy pathStudentGradeLoop.java
File metadata and controls
27 lines (21 loc) · 612 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
/* Computer Programming 1
*/
importjava.io.*;
importjava.util.*;
publicclassStudentGradeLoop
{
publicstaticvoidmain(String[] args) {
Scannerread = newScanner(System.in);
intgrade;
//multiple conditions with for loop
intcounter=0;
intcounter2=0;
for(counter=0;counter<2;counter++){ ///////////// counter =0 counter =1 counter =2
//////////
for(counter2=0;counter2<3;counter2++){//////// counter2 = 0 counter2 = 1 counter2 = 2 counter2 = 3
System.out.print("*");
}
System.out.println();
}
}
}