Answer:
The program is as follows:
i = 1
while(i<11):
j = 1
while(j<=i):
print('*', end = '')
j += 1
i += 1
print()
Explanation:
Initialize i to 1
i = 1
The outer loop is repeated as long as i is less than 11
while(i<11):
Initialize j to 1
j = 1
The inner loop is repeated as long as j is less than or equal i
while(j<=i):
This prints a *
print('*', end = '')
This increments j and ends the inner loop
j += 1
This increments i
i += 1
This prints a blank and ends the inner loop
print()
Answer:
YES
Explanation:
values other than five will work
Answer:
Explanation:
given data
types of drinking straws
- square cross-sectional shape
- round shape
solution
we know that both perimeter of the cross section are equal
so we can say that
perimeter of square = perimeter of circle
4 × S = π × D
here S is length and D is diameter
S =
....................1
and
ratio of flow rate through the square and circle is here