Selection Control Structure - Assignment 4
Implement a program to calculate the product of three positive integer values. However, if one of the integers is 7, consider only the values to the right of 7 for calculation. If 7 is the last integer, then display -1.
Note: Only one of the three values can be 7.
Sample Input and Output
No comments:
Post a Comment