Computer Science, asked by panther45, 6 months ago

Write the program to print the odd numbers between 1 to 50 using if-else statement​

Answers

Answered by ArpitMishra506
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