in Education by
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

1 Answer

0 votes
by
 
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
    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 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
0 votes
    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
0 votes
    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
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
    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
0 votes
    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
0 votes
    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
0 votes
    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
0 votes
    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
0 votes
    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
0 votes
    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
0 votes
    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
...