wap to find all the even numbers from 100 to 500 using for loop
please anwerr
Answers
Answered by
0
printf (“Even numbers between 1 and 100 are”);
for (i=1 ;i <=100; i++)
{
if (i%2 == 0)
printf(“%d \n”,i);
}
pls mark brainliest
Answered by
0
int start = 100;
int end = 500;
for(int i = start; i <=end; i++){
if( i % 2 == 0 ){
System.out.println("even num "+i);
}
}
There's many ways to do it by the way but this is the simplest i think and for more about that research on stack overflow.
Similar questions