how to WAP to find all even numbers whitin given range
Answers
Answered by
0
I am writing just the body....let the starting be x and ending be y....
for(int i=x; i<=y;i++)
{
if(i%2==0)
System.out.println(i) ;
}
for(int i=x; i<=y;i++)
{
if(i%2==0)
System.out.println(i) ;
}
Similar questions