[code] Java Faktorial (Jumlah For) 2-3

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

package Fak;

/**
 *
 * @author FIQI
 */
public class JumlahFor {
    public static void main(String[] args){
        int Jum;
        Jum=0;
        for(int i=2;i<=10;i+=2)
        {
        System.out.print(i+"+");
        Jum=Jum+i;
        }
        System.out.println(" = "+Jum);

}
}

0 komentar:

Posting Komentar

: Ayoo sharingg.. :D

Related Posts Plugin for WordPress, Blogger...

Sponsor

Banner

Ayo kita tukar - tukaran banner : my code banner :
ImagineWorld
and my friend :