public class uts_nomor_2 {
public static void main(String[] args) {
for (int j=1;j<=100;j++) {
System.out.print(+j+", ");
if (j%15 == 0) {
System.out.print("STTP, ");
}else if (j%5 == 0) {
System.out.print("POMOSDA, ");
}else if (j%3 == 0) {
System.out.print("STT, ");
}
}
}
}
uts_nomor_2
di 15.58
Label: syintax java
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar