(1)
To Print the value of Z where Z =
X +0.5x
- where x ranges from - 10 to 10 with
an increment of 2 and Y remains constant at 5.5.
(1)
To print the Floyds triangle with N rows
Example: If N = 5, Output:
2 3
4 5 6
7 8 9 10
11 12 13 14 15
Answers
Answered by
2
Answer:
Floyd's Triangle Python3 Code:
n = int(input("N: "))
c = 0
for i in range(n):
for j in range(i + 1):
c += 1
print(c, end=" ")
print()
Similar questions