<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 : The securtiy of the password can be maitained by the shadow files such as:-
- max is for the days that represent that the same password can be used without the need for changing it
- min is for the days that represent waiting days before the changing of password after he/she gets a new password
- warn are the days that come with Waring sign that the password is going to expire soon.
For a certain period of time , the user can access the log in when the password has expired . If that period is timed out then there will be no log in option and the account gets disabled.
Answer:
35
Explanation:
We will be going inside B array, because he was in second place in array E,and will be the first element of array B, so it's 35
E can be understanded as:
E=[[21, 'dog', 'red'],[35, 'cat', 'blue'],[12, 'fish', 'green']], so, you can see array E as array of arrays or so-called two-dimensional array
I believe it is C, I'm so sorry if im incorrect.
Answer:
when it is a windy day and you want to reduce the sound of the wind in the recording