Advertisement
Robert_Manea

Crescator n*n

Nov 10th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int n,i;
  7. scanf("%d",&n);
  8. for(i=1;i<=n*n;i++){
  9. if(i%n==1){
  10. printf("\n");
  11. }
  12. printf("%d ",i);
  13. }
  14.  
  15.  
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement