Pseducode :
import java.util.Scanner;public class Tugas1_11520241015 {public static void main(String[] args){//input dataScanner masuk = new Scanner(System.in);System.out.println("==========================================");System.out.println(" Menampilkan Deret Bilangan ");System.out.println("==========================================");System.out.printf("Mau menampilkan berapa deret bilangan ? ");int a = masuk.nextInt();System.out.println("\nDeret Bilangan = ");//chek datafor(int i=1; iSystem.out.print(i);while(a>5){a = a-5;for(int c=1; c<=a && c<=5; c++){System.out.print(c);}}}}
0 terbaik