Question: Exercise 3 Write a C++ program that reads any number between -100.0 and 100.0. The program should classify the number if it is either: positive,
Exercise 3 Write a C++ program that reads any number between -100.0 and 100.0. The program should classify the number if it is either: positive, negative, or zero. Also, the program must check if number is multiple of 2 or 3 or both. The program then displays the following message according the input: Input -22 14 24 0 Message 22 is: a negative number: multiple of 2 14 is: a positive number: multiple of 2 24 is: a positive number: multiple of 2 and 3 zero
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
