Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
double num;
// read discriminant
cin>>num;
// calculate square of the input
double result=num*num;
// print the square number
cout<<result<<endl;
return 0;
}
Explanation:
Declare a variable "num".Read the value of "num" from keybord.Then calculate square of the input number.Print the square of input number.
Output:
5
25
Answer:
1.) 25 ; 15 ; 15
2.) 50 ; 15 ; 50
Explanation:
In the first function written :
The variable val was initially decaled or assigned a value of 25 and that was what was printed first.
However, after the example function was written, the val variable was finally assiagned a value of 15 within the function. However, it was also declared that the global variable takes uonthe val value. Hence, the val variable initially assigned a value, of 25 changes to 15 globally.
For the second code :
From the top:
Val was assigned a value of 50 ;
Hence,
print(val) gives an output of 50
Within the function definition which prints the value of val that is assigned a value of 25 within the function.
Since tbe global variable isnt reset.
Printing Val again outputs 50;since ito is outside the function.
The benefit of actually growing up.
The function of options in a linux command is to to influence the behavior of defined shell scripts and help execute the desired tasks.
<h3>What are options in linux command line?</h3>
In the Linux OS, these options are a list of flags and other parameters that can control the behavior of the wt command line as a whole.
Some examples of options in a linux command includes:
- cd command
- ls command
- cat command
- cp command
- mv command
- mkdir command
- rmdir command.
In conclusion, the function of options in a linux command is to to influence the behavior of defined shell scripts and help execute the desired tasks.
Read more about linux command
brainly.com/question/25480553
#SPJ4