write a program in q basic to print 1 astrick 2 astrick 3 astrick 4 astrick 5 astrick in separate lines
Answers
Answered by
0
Answer:
Explanation:
#include <stdio.h>
void main()
{
int i,j,rows;
printf("Input number of rows : ");
scanf("%d",&rows);
for(i=1;i<=rows;i++)
{
for(j=1;j<=i;j++)
printf("*");
printf("\n");
}
}
Similar questions
India Languages,
1 month ago
English,
1 month ago
English,
3 months ago
Math,
10 months ago
Math,
10 months ago