Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
WAP in java to check whether the sum of second and third digit of a 4 digit no. , is even or odd?
Home
Education
WAP in java to check whether the sum of second...
asked
Dec 23, 2021
in
Education
by
JackTerrance
WAP in java to check whether the sum of second and third digit of a 4 digit no. , is even or odd? Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 23, 2021
by
JackTerrance
Best answer
Answer: Given a number N, the task is to find the sum of digits of a number at even and odd places. Examples: Input: N = 54873 Output: Sum odd = 16 Sum even = 11 Input: N = 457892 Output: Sum odd = 20 Sum even = 15
Related 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 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: WAP in java to input 3 numbers from user and print the largest no. among them using nested if.
WAP in java to input 3 numbers from user and print the largest no. among them using nested if. Select the correct answer from above options...
asked
Dec 19, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: WAP to display all the information of student (like name, class, roll no) in qbasic
WAP to display all the information of student (like name, class, roll no) in qbasic Select the correct answer from above options...
asked
Dec 15, 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 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: my tens digit is one more than my hundreds digit. my hundreds digit is an even number between 5 and 7. my ones digit is the number of vertices in a triangle. Who am l?
my tens digit is one more than my hundreds digit. my hundreds digit is an even number between 5 and 7. my ones ... triangle. Who am l? Select the correct answer from above options...
asked
Dec 23, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a script in python to check whether your age is “major” or “minor”
Write a script in python to check whether your age is “major” or “minor” 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: Mathematical function to check whether a number is positive or negative in c#
Mathematical function to check whether a number is positive or negative in c# Select the correct answer from above options...
asked
Dec 20, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to check whether the entered number is positive or negative or zero
write a program to check whether the entered number is positive or negative or zero 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: Help neededPlease write a program to check whether a number is special number or not .
Help needed Please write a program to check whether a number is special number or not . 100 points 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: WAP in java to input 2 numbers from user and print their difference (Always Positive).
WAP in java to input 2 numbers from user and print their difference (Always Positive). Select the correct answer from above options...
asked
Dec 19, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Wap in Java to print a pascal triangle in simple language. Please explain the logic
Wap in Java to print a pascal triangle in simple language. Please explain the logic 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: . 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 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
...