fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int n, i, j;
  5. char name[] = "马思恩";
  6. printf("请输入正整数:3");
  7. scanf("%d", &n);
  8. // 打印3行3列矩形
  9. for(i = 0; i < n; i++)
  10. {
  11. for(j = 0; j < n; j++)
  12. {
  13. printf("%s ", name);
  14. }
  15. printf("\n");
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0s 5296KB
stdin
Standard input is empty
stdout
请输入正整数:3