class Sum
{
public static void main(String[] args)
{
int g=1;
int sun=0;
int sum=0;
int x=1;
while(g<=100){
sun+=g;
g++;
}
System.out.println(sun);
System.out.println("llllllllllllllll");
while (x<=100){
if(x%2==0){
sum+=x;
}
x++;
}
System.out.println(sum);
}
} |
|