CS159 language C
Question 12 Not yet answered Marked out of 35.00 Flag question. Write a main function that performs the following: • Prompts the user to enter two integer values X and Y. (10 points) • If the first number X is greater than the second number Y, the main function should find and print the sum of even numbers from X to Y. (10 points) • If the first number X is less than the second number Y, the main function should print the product of even numbers from X to Y. (10 points) • Otherwise, the main function should print "Good Luck next time!". (5 points)
CS159 language C
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am