Write a program to Implement a function to print In-Degree, Out-Degree and to display that adjacency matrix.

#include <stdio.h>
#include <conio.h>
#define MAX_SIZE 10
void main() {
    int graph[MAX_SIZE][MAX_SIZE], n, edg;
    int indeg=0,outdeg=0;
		int i, j, z;
		clrscr();
		printf("ENTER THE NUMBER OF VERTICES\n");
		scanf("%d", &n);
		printf("ENTER THE NUMBER OF EDGES\n");
		scanf("%d", &edg);
		for (i = 1; i <= n; i++)
				for (j = 1; j <= n; j++)
						graph[i][j] = 0;
		printf("ENTER THE ADJACENCY LIST :(U,V)\n");
		for (z = 1; z <= edg; z++) {
        scanf("%d%d", &i, &j);
        graph[i][j] = 1;
    }
		for (i = 1; i <= n; i++){
				outdeg=0;
				indeg=0;
				for (j = 1; j <= n; j++){
						outdeg+=graph[i][j];
						indeg+=graph[j][i];
				}
				printf("\nFOR VERTEX %d, IN-DEGREE = %d, OUT-DEGREE=%d\n",i,indeg,outdeg);
		}
		getch();
}