CS159 language C

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

CS159 language C

Post by answerhappygod »

CS159 language C
Cs159 Language C 1
Cs159 Language C 1 (38.28 KiB) Viewed 10 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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply