Question: in c language both exercise 1 and exercise 2 Exercise 1 if-else if-else with numbers Ask user to enter a number (use a double data
Exercise 1 if-else if-else with numbers Ask user to enter a number (use a double data type for the number). If the number entered is larger than or equal to 1000, print Large number, if the number is between 100 and 1000 print Hundreds, if it is between 10 and 100 print Tens, if it is between 0 and 10 print Ones otherwise if it is less than 0 print Negative value Exercise 2 Ternary operator In main ask the user to enter two numbers. Subtract the two numbers, if the result is greater than or equal to 0 print P otherwise print N. Use the ternary operator
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
