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
Math,
8 months ago
Music,
8 months ago
Biology,
8 months ago
Social Sciences,
1 year ago
Math,
1 year ago