Skip to content

Instantly share code, notes, and snippets.

@ThePratikSah
Created July 17, 2017 18:21
Show Gist options
  • Save ThePratikSah/a4c726437671fae2a4c5206c0fa1bb85 to your computer and use it in GitHub Desktop.
Save ThePratikSah/a4c726437671fae2a4c5206c0fa1bb85 to your computer and use it in GitHub Desktop.
#include <stdio.h>
main() {
int array[3][3], i, j;
printf("Enter the elements of array:\n");
for (i = 0; i < 3; ++i) {
for (j = 0; j < 3; ++j)
scanf("%d", &array[i][j]);
}
for (i = 0; i < 3; ++i) {
for (j = 0; j < 3; ++j)
printf("%d ", array[i][j]);
printf("\n");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment