Write A Program That Let The User To Enter The Temperature As An Integer Number
Write A Program That Let The User To Enter The Temperature As An Integer Number
1. Write a program that let the user to enter the temperature as an integer number,
then if this number is greater than or equal to 20°C, the program should display “The
weather is hot.”, or if this number is less than or equal to 0°C, the program should
display “The weather is cold.”. Otherwise, the program should display “The weather
is normal.”. The numbers should be between -50 and +50. Your program should
control this condition too. If the user does not enter number which is between them,
you should print to the screen
“Invalid number.”
2. Write a program that user inputs an integer number. Then, your program should
act the absolute function in mathematic. It means that if the number is negative, it
should convert to positive number. At the end, you print the number to the
screen.
3. Write a program that reads the marks of a student, determine and prints the
equivalent grade, based on the following:
< 45 E
Marks >= 90 A
5. Write a program that reads three integer numbers, and then prints the
largest and the smallest number.
7. Write a C program to input three values and determine if they represent the
three sides of a triangle. The three values represent a triangle if sum of two
smallest values are greater than the third one and the difference between the
largest and smallest values should be less than the third value.