Computer Science, asked by zebarafique006, 4 months ago

write a program to input a number and display the odd digits ​

Answers

Answered by Guru181
1

Answer:

Using Java for Loop

public class DisplayOddNumbersExample1.

{

public static void main(String args[])

{

int number=100;

System.out.print("List of odd numbers from 1 to "+number+": ");

for (int i=1; i<=number; i++)

Similar questions