![diego481](/avatars/6909.jpg)
diego481
02.12.2021 •
Computers and Technology
How to initialize a reactive form group in angular in compiler strict mode.
Solved
Show answers
More tips
- F Family and Home 5 Tips for Choosing Toys for Your Child...
- L Leisure and Entertainment How to Find a Phone Number by Address: The Ultimate Guide...
- P Philosophy How to Properly Create a Vision Board?...
- C Computers and Internet What is Web 2.0 and How Does it Work?...
- S Style and Beauty Is Photoepilation the Solution to Unwanted Hair Forever?...
- O Other What is a Disk Emulsifier and How Does it Work?...
- F Family and Home What does a newborn need?...
- F Family and Home Choosing the Right Car Seat for Your Child: Tips and Recommendations...
- F Food and Cooking How to Get Reconfirmation of Registration?...
- C Computers and Internet How to Get Rid of Spam in ICQ?...
Answers on questions: Computers and Technology
- C Computers and Technology Informes de un trabajo que hicieron 3 personas que se encuentran en diferentes ciudades urgentee ...
- M Mathematics Does anyone play bloxburg on roblox?...
- M Mathematics A rectangle has a width of 6 feet and a length of 8 1/2 feet. What is it’s area in square feet? Justify your answer....
- H History Which of the following does NOT describe the Northern United States in the mid 1800s? a diverse job economy b. slave dependent manufacturing economy d. pro tariff...
- M Mathematics What is the relative frequency of a tomato having a diameter that is greater than two inches? Round to the nearest percent....
- H History 5.Use the information below to answer the question. For we must consider that we shall be as a city upon a hill. The eyes of all people are upon us, so that if we shall deal falsely...
- M Mathematics Anyone wanna help me with this? or wanna do my essay lol im bored with school!! but i have to graduate. can someone just help me with the math?...
- M Mathematics Please help and show work and steps...
- G Geography What does central place theory mean...
- S Social Studies An example of mitosis is the way the skin cell covering a child s body all multiply while hey are growing....
Ответ:
The answer to this question is given below in the explanation section. It is noted that this program is written in C++ using online C++ compiler.
Explanation:
#include <iostream>
using namespace std;
int squared(int num)// this is the function to compute square
{
return num*num;
}
int cube(int num)// this is the function to compute cube
{
return num*num*num;
}
int main()
{
int user_num, user_num2; // variable declaration
cout<<"Enter the first number: ";//prompt user to enter the number
cin>>user_num;//store the user entered number into variable
cout<<"\nEnter the second number: ";//prompt the user to enter the second number
cin>>user_num2;//store the user entered number into variable
cout<<"\nSquared of first number is: "<<squared(user_num);//compute square of user_num and display
cout<<"\nCube of first number is: "<<cube(user_num);//compute the cube of the user_num and display
cout<<"\nSquare of second number is: "<<squared(user_num2);//compute the square of user_num2 and display
cout<<"\nCube of second number is: "<<cube(user_num2);//compute the cube of user_num2 and display
cout<<"\nSum of number 1 and number 2 is: "<<user_num2 + user_num2;//display the sum of user_num2 and user_num
cout<<"\nProduct of number 1 and number 2 is: "<<user_num2 * user_num;//display the product of user_num and user_num2
return 0;//terminate the program
}