1 Ocak 2015 Perşembe

ToSumSeriesNumber

public class ToSumSeriesNumber{
public static void main(String args[]){
int i=0;
int sum=0;
while(i<5){
sum=sum+i;
i++;
}
System.out.println("Sum of 1 2 3 4 ="+sum);
}


}

Hiç yorum yok:

Yorum Gönder