write a program inputs even and odd number multiply even num with 5 and odd with 7 and the add both values. the subtract the values from 10000 and display
Answers
Answered by
5
Code:
Explanation:
The numbers were retrieved using the function which is designed for the same, under the int datatype. We then use conditional statements to check if the data/numbers are even or odd. If they satisfy the conditions, the succeeding operations will take place. If they aren't satisfied, appropriate error messages are printed.
Similar questions