Computer Science, asked by suhafimehnaz, 3 months ago

write a program to take 30 numbers as imput then display sum of even positive even number and number of of odd negative number with appropriate message on the basis of loop​

Answers

Answered by subhashmkg667
0

Approach:

First, calculate the reverse of the given number.

To the reverse number we apply modulus operator and extract its last digit which is actually the first digit of a number so it is odd positioned digit.

The next digit will be even positioned digit, and we can take the sum in alternating turns.

Below is the implementation of the above approach:

Similar questions