Answer:
The answers is Function Keys
Answer:
void showSquare(int param){
}
Explanation:
In C++ programing language, this is how a function prototype is defined.
The function's return type (In this case Void)
The function's name (showSquare in this case)
The function's argument list (A single integer parameter in this case)
In the open and closing braces following we can define the function's before for example we may want the function to display the square of the integer parameter; then a complete program to accomplish this in C++ will go like this:
<em>#include <iostream></em>
<em>using namespace std;</em>
<em>void showSquare(int param);</em>
<em>int main()</em>
<em>{</em>
<em> showSquare(5);</em>
<em> return 0;</em>
<em>}</em>
<em>void showSquare(int param){</em>
<em>int square = param*param;</em>
<em>cout<<"The Square of the number is:"<<endl;</em>
<em>cout<<square;</em>
<em>}</em>
Answer:
Option A: FileNotFoundError
Explanation:
FileNotFoundError is an exception which is thrown when a program fail to open a specified file. The root causes of this type of error can be:
- The directory path to locate a target file is wrongly defined in our code due to a typo on the file name or misuse of relative directory path, such as ../ and ./ which denote two different paths.
- For some reasons, a target file is misplaced in a wrong directory.
Any one of the above reasons can lead to the exception to be thrown when the file doesn't exist.
Answer:
Website
Explanation:
In the digital world that we are in right now, the best place to conduct your research is online. By click of a mouse, I will be able to go through an unlimited list of websites online, search for the best digital cameras out there, do a purchase, and have the cameras delivered at the comfort of my chair. There are tremendous resources online that will help me choose what is the best for the company.
Num = input("enter number: ")
x = 1
while x <= num:
sum = num + x
print(sum)
x = x + 1