Question: Write a FULL C program (complete with inclusion and main function declaration) to input three integers, X, Y, and Z. You may assume they

Write a FULL C program (complete with inclusion and main function declaration) 

Write a FULL C program (complete with inclusion and main function declaration) to input three integers, X, Y, and Z. You may assume they are non- negative integers. Your program should produce output based on the following rules: If the rightmost digit of X is either 2 or 7, print "A"; . If one of the numbers is equal to the sum of the other two numbers, print "B" If X is not less than Y or Y is not divisible by 3, print "C" If the input values satisfy all the above conditions, print "D" Note: These rules are NOT exclusive. Sample Output (underlined characters are input entered by the user) Input X, Y, Z: 12 208 ABCD

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!