Computer Science, asked by souryapoudel29, 3 months ago

write a program in q basic to print 1 astrick 2 astrick 3 astrick 4 astrick 5 astrick in separate lines

Answers

Answered by ritubaid111
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