Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
write a program to input a number and display the odd digits
Home
Education
write a program to input a number and display the...
asked
Dec 16, 2021
in
Education
by
JackTerrance
write a program to input a number and display the odd digits Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 16, 2021
by
JackTerrance
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
Q: write a Java program to input 10 non-zero numbers in an array and display the count of even and odd numbers.
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: . Accept 8 digit number. Separate 8 digits into 4 parts. Display appropriate message in case ofnumber with less digits. Two digits starting from left in one variable.For example : Input: 31245690, a=31, b=24,c=56,d=90. Print which number is largest. Divide
. Accept 8 digit number. Separate 8 digits into 4 parts. Display appropriate message in case of number with less ... again as abcd Select the correct answer from above options...
asked
Nov 26, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to input number and print wether it is even or odd.
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to input a number. check and display whether it is divisible by 100
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a JAVA program to store the marks of any 5 subjects in different variables. Calculate total and average. Display the name of the student, total and average. DO NOT USE ANY INPUT METHOD
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a JAVA program to find the area and perimeter of a square and rectangle. Store side in s , length as ‘ln’ and breadth as ‘b’. display the results in separate lines. DO NOT USE ANY INPUT METHOD
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a C program to Read a number.Find sum of digit at even position in a number and multiplication of digit at odd position in a number.
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program in java to accept a number and display the new number after removing all the zeros
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to store 1st 25 prime number in an erray and display it
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to store 1st 25 prime number in an erray and display it
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to display and find the sum of any ten natural number.
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to store 1st 25 prime number in an erray and display it
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to display and find the sum of any ten natural number.
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to input a number and print table of the number using while loop
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program in Java to input a number and print if it is a special number or not.
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
computer-science-interview-questions
computer-science-questions
...