In C Declare a variable of type double. - Ask the user for a value and place it in the declared variable. - Write code to check for and output statement stating whether the variable is zero, positive, or negative.
In C
Declare a variable of type double.
- Ask the user for a value and place it in the declared variable.
- Write code to check for and output statement stating whether the variable is zero, positive, or
negative.
- Declare a variable of type character.
- Ask the user for a letter and place it in the declared variable.
- Write code to check for and output statement stating whether the variable is an upper case
letter, lower case letter, or not a letter (neither of the above).
- Write a simple program that is a four function calculator that displays a menu with options a to add, s to subtract, m to multiply, and d to divide two numbers. Ask the user for two float variables in each operation and output the result.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images