fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int n;
  5. printf("Enter the number: \n");
  6. scanf("%d",&n);
  7. for(int i=1;i<=n;i++){
  8. for(int j=1;j<=n;j++){
  9. printf("* ");
  10. }
  11. printf("\n");
  12. }
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5320KB
stdin
6
stdout
Enter the number: 
* * * * * * 
* * * * * * 
* * * * * * 
* * * * * * 
* * * * * * 
* * * * * *