Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

in c language both exercise 1 and exercise 2 image text in transcribed
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

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

More Books

Students also viewed these Databases questions