Monday, 31 October 2011

Tugas Pemrograman Sintaks FOR

Huaaaahhhh.,....
Malem2 kali nuy kawan saya posting sambil nguuuantukkk.,.
hwahhahahaa.,.....
tapi gpp lah tugas.,.,..
hwehehhehee.,..
kmren dikasih tugas sama dosen, qw disuruh postingin tugas tentang sintaks FOR.,...
nuy soalnya:

4444
333
22
1

dan untuk jawabannya nuy gan : .,...

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author jeyegZz
 */
public class coba {
    public static void main(String[] args) {

       
        for (int i=4 ; i>=1 ; i--){
        for (int j=1 ; j<=i ; j++){
        System.out.print(i);        
        }
        System.out.println("");
        }


        }}

0 comments:

Post a Comment