algo responsi


import java.util.Scanner;
public class Responsi
{
public static void main(String args[])
{
Scanner masuk = new Scanner(System.in);
int bil,a,b,c,d;
System.out.print("Masukkan Jumlah Nilai :");
bil=masuk.nextInt();
a=1;
b=1;
for (a=1;a<=bil;a++)
{
System.out.println(" ");
for (b=1;b<=a;b++)
{
System.out.print(b);
System.out.print(" ");
}
System.out.println();
System.out.println("");
}
}
}
    Blogger Comment
    Facebook Comment

0 komentar:

Post a comment

Thanks For Your Feedback.