<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:
Technician A and Technician B are correct
Explanation:
Based on the information provided within the question it can be said that both Technician A and Technician B are correct. A tap handle's right-angled jaw allows many different taps to be attached for different types of situation to more comfortably and conveniently handle that situation. Such as a T-shaped tap in order to cut a thread in an awkward space as Technician B has stated.
Answer:
Correct option is B: Print a test print from the printer's console
Explanation:
At first thought, a laser print that is printing blank pages would mean that the toner is exhausted and needs to be replaced. However, if after replacing the toner, and the problem of printing blank page continues, the first troubleshoot step to take is to be sure that the fault is not from the side of the receptionist by printing a test print from the console of the printer.
In python:
##Specifies the range that the variable 'number' should change within
for number in range(2,10):
##Prints the decimal equivalent of each fraction
print(1 / number)