CS159 language C
Posted: Tue Jul 05, 2022 10:27 am
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)
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)