Question: Lab Assignment Make a C file called conditions.c Using scanf ( ) ( as shown in lecture ) , prompt the user to input two

Lab Assignment
Make a C file called conditions.c
Using scanf()(as shown in lecture), prompt the user to input two ints and a float
In a new float variable (named appropriately), add the three inputs together
Use the ceil() function from math.h to ceiling the value and store the result in an int
Write a conditional block that checks:
If the total input is less than 10, print: Total input less than 10:
If the integer input is greater than 1000, print: Total input greater than 1000:
Otherwise, print: Total input between 10 and 1000:

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!