Write a program to generate any one of the following pattern
@@@@
@@@@
@@@@
1
12
123
1234
Answers
Answered by
0
Answer:
Algorithm:
Start.
Declare and initialize required variables for controlling loop, inputting number of rows and printing numbers.
Enter the number of rows to be printed.
Print the number in standard format utilizing the application of loop as follow: do for x=1 to n. do for y=1 to n. print number. ...
Print triangle.
Stop.
Answered by
1
Answer:
term=0
n=5
for i in range (1,n+1):
term=term*10+i
print(term,end=',')
Output:
1,12,123,1234,12345
Similar questions