Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// recursive function to find sum from 1 to n
int recur_Sum(int n)
{ // base condition
if (n <= 1)
return n;
// recursive call
return n + recur_Sum(n - 1);
}
// main function
int main()
{
// variables
int n;
cout<<"Enter a number:";
// read the number
cin>>n;
// print the sum
cout<<"Sum of first "<<n<<" integer from 1 to "<<n<<" is:"<<recur_Sum(n);
return 0;
}
Explanation:
Read a number from user and assign it to variable "n".Call function recur_Sum() with parameter "n".This function will recursively call itself and find the Sum of first n numbers from 1 to n.Then function will return the sum.
Output:
Enter a number:10
Sum of first 10 integer from 1 to 10 is:55
The most common drive
letter where Windows stores most data and programs is "C".<span>
<span>In the beginning the computers used to have two floppy drives
which were named as A and B. Later when hard drives added up to the
technology, it was written as "C" because A and B were floppy drives
already :) </span></span>
the answer to your question is ".docs"
Answer:
Explanation:
<u>Gateway</u>
A device that may be server or router in a network used to control the flow of traffic between two networks is called Gateway. These networks are different from each others.
It have both disadvantages and advantages as well.
Such as
If we use gateways in all the networks, it may cause traffic congestion whenever all the networks broadcast data,
The advantage of these gateways is that, If we limited number of networks broadcast data then there is no need to store the information of network.
Another advantage is that, it is used to interpret the data from different networks having different protocols.