1.

Write a for loop that displays all odd numbers between 1 to 10

Answer»

for(int count = 1; count <= 10; count = count +2) {System.out.println(count);}



Discussion

No Comment Found

Related InterviewSolutions