The Question : Write a for loop that displays all odd numbers between 1 to 10
Solution for the question :
for(int count = 1; count <= 10; count = count +2)
{System.out.println(count);}
The correct answer to the question is researched by our moderators and shared with you. You can give feedback by commenting for the answers you think are wrong.