Answer:
void countUp(int num)
{
if(num==0) //base case.
return;
countUp(num-1);//Recursive call.
cout<<num<<" "; //printing the number.
}
for input num=25
Output:-1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Explanation:
I have used recursion to print the numbers the function is in c++ language.In every recursive call we are decreasing num by 1.As the base case is reached.Then it will backtrack from 1 to num and then we are printing while backtracking.
Answer:
The complete program is as follows:
m_str = input('Input m: ')
mass = float(m_str)
e = mass * 300000000**2
print("e = ",e)
Explanation:
This is an unchanged part of the program
m_str = input('Input m: ')
This converts m_str to float
mass = float(m_str)
This calculates the energy, e
e = mass * 300000000**2
This is an unchanged part of the program
print("e = ",e)
Answer:
c. nbtstat -a 193.145.85.202
Explanation:
Nbtstat is a TCP/IP utility which is used to display the current connections and statistics of TCP/IP using NetBIOS over TCP/IP (NetBT).
It is installed on a computer running Microsoft Windows when the TCP/IP protocol stack is installed.
Also, it is very useful when we want to troubleshoot NetBIOS name resolution problems.
One can run nbtstat -a < ComputerName > to obtain the local NetBIOS name table on <ComputerName> and its MAC address
Command prompt is the answer and on Apple devices it is called Terminal.