/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package igara;
/**
*
* @author ASUS
*/
public class looptugas {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
for(int a=1; a<=5; a++){
for (int b=1; b<=a; b++)
System.out.print(b);
System.out.print("\n") ;
// TODO code application logic here
}
}
}
Tidak ada komentar:
Posting Komentar