Question: Problem Statement Write a program that reads a whole number from the console, computes the square for that number and outputs the result back to
Problem Statement
Write a program that reads a whole number from the console, computes the square for that number and outputs the result back to the consoler. Use an appropriate data type for all variables.
Warning: Be diligent entering your solution below. Pay special attention to typos. The compiler will be used as the source of truth. You will not receive credit if it does not compile.
Example:
Enter a whole number:
Result:
Solution
#include
using namespace std;
int main
Select
input;
cout "Enter a whole number:";
Select
Select
Select
;
Select
Select
;
cout "Result:
Select
Select
;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
