WAP to input 2 numbers A and B and print their sum. If the sum is a even number then print the difference between A and B otherwise (if the sum is an odd number) print the product of A and B.
Answers
Answered by
1
Answer:nput: N = 54873
Output:
Sum odd = 16
Sum even = 11
Input: N = 457892
Output:
Sum odd = 20
Sum even = 15
Explanation: pls give me a like if you had this answer with clarity
Similar questions