tulis script persis dibawah ini !!!
package tokojono;
import java.util.*;
public class ganjilgenap {
public static void main (String[]args){
Scanner input = new Scanner(System.in);
int a,b,c;
System.out.print("Masukkan angka =");
a = input.nextInt();
for (b=a;b>=1;b--){
for (c=b;c>=1;c--){
System.out.print(c);}
System.out.println("");
}
}
}
0 komentar:
Posting Komentar