fork download
  1. #include<stdio.h>
  2.  
  3. int main(void) {
  4. printf("TELL ME THE NUMBER YOU WANT: \n");
  5. int n;
  6. scanf("%d", &n);
  7. for (int row = 0; row < n; row++) {
  8. for (int column = 0; column < n; column++) printf("*");
  9. printf("\n");
  10. }
  11. }
  12.  
  13. //https://pt.stackoverflow.com/q/171183/101
Success #stdin #stdout 0s 4256KB
stdin
4
stdout
TELL ME THE NUMBER YOU WANT: 
****
****
****
****