WAP to display all the even numbers up to n
Answers
Answered by
1
Explanation:
for (int a=2;a<=n;a+=2)
System.out.println (a);
Similar questions