Guest User

Untitled

a guest
Jan 21st, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int n = 4;
  6.  
  7. char t[n][n];
  8. for (int i = 0; i <= n - 1; i++) {
  9. for (int j = 0; j <= n - 1; j++) {
  10. t[i][j] = '*';
  11. }
  12. }
  13.  
  14. for (int i = 0; i < n; i++) {
  15. for (int j = 0; j < n; j++) {
  16. printf("%c ", t[i][j]);
  17. }
  18. printf("\n");
  19. }
  20.  
  21. return 0;
  22. }
Add Comment
Please, Sign In to add comment