Write a program to print pattern
*
**
***
****
*****
Answers
Answered by
1
Answer:
In C language:
#include <stdio.h>
int main()
{
int a;
printf("How many lines do you want? ");
scanf("%d", &a);
for(int i = 1; i <= a; i++)
{
for(int j = 0; j < i; j++)
{
printf("*");
}
printf("\n");
}
return 0;
}
OUTPUT:
How many lines do you want? 5
*
**
***
****
*****
Answered by
0
Answer:
I don't like computer of so don't ask questions
Similar questions