fork(1) 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++) {
  9. printf("*");
  10. }
  11. printf("\n");
  12. }
  13. }
Success #stdin #stdout 0s 2172KB
stdin
4
stdout
TELL ME THE NUMBER YOU WANT: 
****
****
****
****