<u> C++ Program to Print Pascal's Triangle</u>
#include<iostream>
//header file
using namespace std;
//driver function
int main()
{
int r;/*declaring r for Number of rows*/
cout << "Enter the number of rows : ";
cin >> r;
cout << endl;
for (int a = 0; a < r; a++)
{
int value = 1;
for (int b = 1; b < (r - a); b++)
/*Printing the indentation space*/
{
cout << " ";
}
for (int c = 0; c <= a; c++)
/*Finding value of binomial coefficient*/
{
cout << " " << value;
value = value * (a - c) / (c + 1);
}
cout << endl << endl;
}
cout << endl;
return 0;
}
<u>Output</u>
<u>Enter the number of rows : 5</u>
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
Answer and Explanation:
Centralized : Central node in the system gets whole data about the system topology, about the traffic and about different hubs. This at that point transmits this data to the particular switches. The benefit of this is just a single hub is required to keep the data. The hindrance is that if the focal hub goes down the whole system is down, for example single purpose of disappointment.
Distributed: Distributed nodes gets data from its neighboring hubs and afterward takes the choice about what direction to send the parcel. The weakness is that if in the middle of the interim it gets data and sends the parcel something changes then the bundle might be deferred.
Example :
Link State takes Centralized approach
Distance Vector takes Decentralize approach
Answer:
Krampus 4k Nitrotype team- VVIXEN
<u>Explanation:</u>
Cloud Computing is the use of hardware and software to deliver a service over a network means on the internet. With cloud computing, users can access files and use applications from any device that can access the Internet. An example of a Cloud Computing provider is Email.
When you have a lot of data you can upload on the cloud server. To upload your data on cloud you must have a account and permission to save and upload your data.
<u>Example is:</u> data storage sites
Answer
Peer-to-peer network
Explanation
Social media video sharing networks a platform which is an entertainment based where members can share videos in a site. it allows easy integration with other social networking platforms to share and watch videos. To start a social media video sharing network, Rebecca is required to set up a Peer-Peer Network.
Peer-Peer network is created when two or more computers are connected and they are sharing resources without going through separate servers. That is a couple of computers are connected via a Universal Serial Bus to transfer files.