-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAsciiTable.java
More file actions
63 lines (44 loc) · 1.46 KB
/
AsciiTable.java
File metadata and controls
63 lines (44 loc) · 1.46 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* Christopher Yonek
CSC-162 - Mr. Ng.
2/4/2020
Chapter 5.15 - ASCii Display */
public class AsciiTable {
public static void main(String args[]) {
//Prints out 10 characters then makes a newline from ASCii #33-#126
for(int i=33; i<= 43; i++){
System.out.printf("%c ",i,i);
}
System.out.print("\n");
for(int i=44; i<= 54; i++){
System.out.printf("%c ",i,i);
}
System.out.print("\n");
for(int i=55; i<=65; i++){
System.out.printf("%c ",i,i);
}
System.out.print("\n");
for(int i=66; i<=76; i++){
System.out.printf("%c ",i,i);
}
System.out.print("\n");
for(int i=77; i<=87; i++){
System.out.printf("%c ",i,i);
}
System.out.print("\n");
for(int i=88; i<=98; i++){
System.out.printf("%c ",i,i);
}
System.out.print("\n");
for(int i=99; i<=109; i++){
System.out.printf("%c ",i,i);
}
System.out.print("\n");
for(int i=110; i<=120; i++){
System.out.printf("%c ",i,i);
}
System.out.print("\n");
for(int i=121; i<=126; i++){
System.out.printf("%c ",i,i);
}
}
}