Page 1 of 1

CS159 language C

Posted: Tue Jul 05, 2022 10:27 am
by answerhappygod
CS159 language C
Cs159 Language C 1
Cs159 Language C 1 (38.28 KiB) Viewed 12 times
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)