in Education by
write a program to input a number and display the odd digits Select the correct answer from above options

1 Answer

0 votes
by
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++)

Related questions

0 votes
    write a Java program to input 10 non-zero numbers in an array and display the count of even and odd numbers. URGENT! Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    write a program to input number and print wether it is even or odd. Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    write a program to input a number. check and display whether it is divisible by 100 Select the correct answer from above options...
asked Dec 17, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to store the marks of any 5 subjects in different variables. Calculate total and average. ... ANY INPUT METHOD Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to find the area and perimeter of a square and rectangle. Store side in s , length as ... USE ANY INPUT METHOD Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    write a C program to Read a number.Find sum of digit at even position in a number and multiplication of digit ... position in a number. Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    write a program in java to accept a number and display the new number after removing all the zeros Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    write a program to store 1st 25 prime number in an erray and display it Select the correct answer from above options...
asked Dec 6, 2021 in Education by JackTerrance
0 votes
    write a program to store 1st 25 prime number in an erray and display it Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    write a program to display and find the sum of any ten natural number. Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    write a program to store 1st 25 prime number in an erray and display it Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    write a program to display and find the sum of any ten natural number. Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    write a program to input a number and print table of the number using while loop Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    write a program in Java to input a number and print if it is a special number or not. do this program using ... nested and while loop . Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
...