Question: CS1050-Lab 2 Spring 2019 Concepts to Practice . Simple input/output . Integer variables Arithmetic operators Extend Prelab 2 Submission Information Submit this assignment fo or

 CS1050-Lab 2 Spring 2019 Concepts to Practice . Simple input/output .

CS1050-Lab 2 Spring 2019 Concepts to Practice . Simple input/output . Integer variables Arithmetic operators Extend Prelab 2 Submission Information Submit this assignment fo or executabl using the lab code given by the TA by following the instructions given by your TA. SUBMIT ONLY the .c file (no a.out e hie is required). All of the lab assignments must be submitted before the end of the lab Use the following submit command: submit cclass> cassignment> cfilename> For example submit CS1050 LAB 2 m-lab2.c Filename must be: sectionletter-lab2.c (include your respective lab section), e-g., m-lab2.c Description For the lab assignment, write a C program that reads in two integer numbers from user input. The first integer may be any integer and should be called A. The second integer may be any integer other than zero and should be called B. If the user inputs zero for the second integer, print an error message and ask the user to enter the second integer again. Print the following: Print the values of A and B. Print the value of A and B added together. Print the value of A minus B. Print the value of A and B multiplied together. Print the value of A divided by B .Print the integer remainder of A divided by B BONUS: You can optionally print which number has the larger absolute value for bonus points

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!