Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CS1050 - Lab 2.1 Spring 2020 Concepts to Practice if, if/else while increment/decrement operators Extend Prelab 2.1 Submission Information Submit this assignment by following the

image text in transcribed

image text in transcribed

CS1050 - Lab 2.1 Spring 2020 Concepts to Practice if, if/else while increment/decrement operators Extend Prelab 2.1 Submission Information Submit this assignment by following the instructions given by your TA SUBMIT ONLY the clien or executable file is required). All of the lab assignments must be submitted before the end of the using the lab code given by the TA. Use the following submit command: mucs submit For example: mucs submit 1050 lab m-lab2.1.c Filename must be: sectionletter-lab 2. 1.c (include your respective lab section, e...clabile Description You are to write a program that displays all integers from 5 through 25 (inclusive) in order from the greatest integer down to the least integer. If one of these integers is divisible by 2.printdevole by on the same line. If one of these integers is divisible by 3.print" divisible by 3" on the same line. Han integer is divisible by both 2 and 3, print "divisible by 2,3" on the same line. Sample Output (bold and highlight shows user input JimR@JimRArea51:-/C51050/sp20205 compile lab2.1.0 JimR@JimRArea51:-/C51050/sp2020$ /a.out 25 24 divisible by 2 and 3 23 22 divisible by 2 21 divisible by 3 20 divisible by 2 19 18 divisible by 2 and 3 17 16 divisible by 2 15 divisible by 3 14 divisible by 2 13 12 divisible by 2 and 3 11 10 divisible by 2 9 divisible by 3 8 divisible by 2 6 divisible by 2 and 3 Guidelines for Gra 40 Points PC General If your program does not compile, or produce any ing will receive a grade of zero points. Your lab solution appropriately depending on whether the current in duplicating the sample output without implementi appropriate tests will be worth a grade of zero pc

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 2 Lncs 8056

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013th Edition

3642401724, 978-3642401725

More Books

Students also viewed these Databases questions