Question: Write a C++ program that will input a real number with only one number before the decimal and two numbers after the decimal place.
Write a C++ program that will input a real number with only one number before the decimal and two numbers after the decimal place. Reverse the input number, then using switch statement print the corresponding month name for the input decimal value. For example, if the input is 3.12, the answer should be 12.3, and it will print December. Sample Input / Output Enter a number with two decimals only: 3.12 The reversed number is 12.3 December
Step by Step Solution
3.49 Rating (175 Votes )
There are 3 Steps involved in it
include iostream include iomanip include cmath using namespace std int main double inputNumber int i... View full answer
Get step-by-step solutions from verified subject matter experts
