Answer:
The scope of a variable is where it can be read or modified.
its ctrl c and to paste is ctrl v
The answer should be:Vulnerability..
Answer:
Following are the program in c++ language
#include <iostream> // header file
using namespace std;// namespace
int main() // main function
{
int num; // variable declaration
long int f=1; // variable declaration
do
{
cout<<"Enter the Positive value:";
cin>>num;
} while(num<0); // i check whether number is non negative or not
while(num>0) // iterating over the loop
{
f=f*num; // calculate the factorial
num--; // decrement the value of num by 1
}
cout<<" factorial is :"<<f; // display the factorial .
return 0;
}
Output:
Enter the Positive value:7
factorial is :5040
Explanation:
Following are the description of the program .
- Read the input by user in the "num" variable of "int" type..
- The do-while will check the enter number is nonnegative number.
- While(n>0) loop is calculating the factorial in the "f" variable .
- Finally display the factorial .
Answer:
=ROUND(G19, 0)
Explanation:
In Microsoft Excel you would need to click on cell B5 and then click the function bar at the top and paste the following formula
=ROUND(G19, 0)
This formula will grab whatever value is in cell G19 and round it to the nearest whole integer without any decimal places at all. This is handled by the ROUND() method which takes in two arguments, the first is the cell which has the value to be rounded, and the second argument is the number of decimal places to round to. 0 indicates no decimal places.