Course Hero Logo

CS1050 Lab 3.pdf - CS1050 – Lab 3 Fall 2021 Concepts to...

This preview shows page 1 - 2 out of 4 pages.

CS1050Lab 3Fall 2021Concepts to Practiceif, if/elsewhileincrement/decrement operatorsExtend Prelab 3Submission InformationSubmit this assignment by following the instructions given by your TA.SUBMIT ONLY the .c file (no a.outor executable file is required).All of the lab assignments must be submitted before the end of the labusing the lab code given by the TA.Use the following submit command:mucs submit <class> <assignment_name> <filename>For example:mucs submit 1050 lab3 lab3.cDescriptionYou are to write a program that goes through all even integers from 2 through 50 in order from thegreatest integer down to the least integer.As you move through these integers, if the current integer isdivisible by 5, print “X”.If the current integer isdivisibleby 3, print “Y”.If the current integer is divisibleby both 5 and 3, print “XY”.If the current integer is divisible by neither 5 nor 3, print the integer.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 4 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
Guilliams
Tags
Division, Prime number, Grading Lab

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture