Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
write a program to input number and print wether it is even or odd.
Home
Education
write a program to input number and print wether...
asked
Dec 21, 2021
in
Education
by
JackTerrance
write a program to input number and print wether it is even or odd. Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 21, 2021
by
JackTerrance
Best answer
class Program { void disp(int a) { if(a%==0) System.out.println(“Even Number”); else System.out.println(“Odd Number”); } }
Related 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
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: 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 to input a number and display the odd digits
write a program to input a number and display the odd digits Select the correct answer from above options...
asked
Dec 16, 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 menu-driven program to print the following patterns, where number of rowsfor the pattern should be the user input:a. Press 1 to print the following pattern:55 85 8 135 8 13 205 8 13 20 29b. Press 2 to print the following pattern:22 92 9 282 9 28 652 9 28 65 126c. Print the following series:
Write a menu-driven program to print the following patterns, where number of rows for the pattern should be the user ... 2 4 8 32 Select the correct answer from above options...
asked
Nov 29, 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 python program to print first n(entered by user) even natural numbers.
Write a python program to print first n(entered by user) even natural numbers. Select the correct answer from above options...
asked
Dec 25, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program in JAVA to input a sentence reverse every word and print .
Write a program in JAVA to input a sentence reverse every word and print . Please answer someone. 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: How to write a program in JAVA to print the sum of ASCII values of a particular word input ?
How to write a program in JAVA to print the sum of ASCII values of a particular word input ? Select the correct answer from above options...
asked
Dec 28, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program in Java to input any age and determine whether the age is valid or invalid. If age is greater than or equal to 18 then it is valid otherwise invalid.
Write a program in Java to input any age and determine whether the age is valid or invalid. If age is ... is valid otherwise invalid. Select the correct answer from above options...
asked
Dec 24, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to enter a sentence and check if it contains palindrome words or not. if yes then count and print all palindrome words in the sentence present. Java class 10
write a program to enter a sentence and check if it contains palindrome words or not. if yes then count and ... present. Java class 10 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 C program to Read a number . find sum of digit at even position in a number and
write a C program to Read a number . find sum of digit at even position in a number and multiplication of ... 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 to prompt the user for days and rate per day to compute total pay. Use 50 days and a rate of 3.5 per day to test the program. Total pay is equal to (days* Rate per day). You should use input to read a string and float() to convert the string to a number.
Write a program to prompt the user for days and rate per day to compute total pay. Use 50 days and a rate ... the string to a number. Select the correct answer from above options...
asked
Dec 1, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to implement a simple calculator for two input number . offers choice through a menu in python
write a program to implement a simple calculator for two input number . offers choice through a menu in python Select the correct answer from above options...
asked
Dec 13, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
...