Algorithm to find sum of all even numbers from 1 to 80
Answers
Answered by
0
int I;
for(I=0;I<81;I++)
{i=I
if(i%2==0)
{i+=i;}
}
}
System.out.println(i);
for(I=0;I<81;I++)
{i=I
if(i%2==0)
{i+=i;}
}
}
System.out.println(i);
Similar questions