fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int rows,i,j;
  6. printf("enter no.of rows:");
  7. scanf("%d",&rows);
  8. for(i=1;i<=1;i++)
  9. {
  10. for(j=1;j<=1;j++)
  11. {
  12. printf("*");
  13. }
  14. printf("\n");
  15. }
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5452KB
stdin
5
stdout
enter no.of rows:*