Write the program to print the odd numbers between 1 to 50 using if-else statement
Answers
Answered by
0
public class ODD{
public static void main(String args[]){
for(int a=1; a<=50; a++){
if(a%2!=0){
System.out.println(a);
}
}
}
.
.
.
.
HOPE THIS HELPS YOU BRO
.
.
.
.
PLEASE MARK AS BRAINLIEST AND FOLLOW ME TOO
Similar questions