WRITE A PROGRAM TO DISPLAY THE FOLLOWING PATTERN
Attachments:
Answers
Answered by
0
Answer:
#include <stdio.h>
int main()
{
int i,j;
char ch='A';
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%c ",ch++);
}
printf("\n");
}
return 0;
}
Answered by
0
Answer:
Ans:
n = 3
for i in range(n):
for j in range(i+1):
print('x',end="")
print("\n")
Mark me as brainliest
Similar questions