Computer Science, asked by parulamit78gmailcom, 1 year ago

write a program to enter two numbers and print all the odd numbers between them

Answers

Answered by Ananyamisra00
0

Answer:

this is only logic suppose the number from which we have to search odd number is n and j is the variable till where we have to search

for(i=n;i<=j;i++)

{

if(i%2!=0)

{

System .out.println(i);

}

}

Answered by Prashantk1121
0

Answer:

Explanation: import java .util.★

Public class number

{

Public static void main (string arts[])

{

Scanner SC= new scanner (system.in);

{

System.out.println("Enter your choose")

System.out.println(" it's is a odd number")

}

}

Similar questions