Answer:
#include <iostream>
using namespace std;
int cube(int num)//function cube..
{
return num*num*num;
}
int main() {
int result=cube(4);//result stores the value of cube(4).
cout<<result;//displaying it to the screen.
return 0;
}
Explanation:
The above code is in C++ language.The function cube is passed with value 4 and the result of it is stored in the variable result of integer type.Then the result is displayed using the cout. Which is used to print the statement to the output screen.
Hey there! Hello!
I believe that you can click a button that has something to do with decreasing the font size, to go along with the question, perhaps the decrease font size button. Sometimes these buttons are represented with minus signs or arrows pointing downwards, among other symbols that convey that the font size will be decreasing.
I hope this helped you out! Feel free to ask me any additional questions if you have any. :-)
If you get caught doing something unethical, you'd be shunned, wouldn't you? If you were to do something that others would consider "immoral" or "unethical", you should do so with extremely discreetly. You shouldn't risk doing something that would get you fired, leave a permanent black mark on your history, and ruin chances of you getting a good job if the reward is low.
Answer = <span>Graphical User Interface</span>
def main():
print("This is meant for me to learn about different types of people.")
<em>#print("What is your favorite animal")</em>
favAnimal = input("What is your favorite animal?")
<em>#print("Wow that's a really cool animal.")
</em>
<em> #print("Do you know how to speak different languages")</em>
answer = input("Do you know how to speak different languages")
if(answer == "yes"):
print("That's amazing")
else:
print("You don't know how to speak different languages don't sweat it neither do I.")
main()
1. We have to comment/remove all those lines with the print () method that contain questions and "must" accept user input, because in the variable declaration the questions with the input are already printed.
2. Since there are no curly braces in Python, you should use tabs instead.