void main() { int i,j; clrscr(); printf("Enter the number of vert\n"); scanf("%d",&n); printf("Enter the mat\n"); for(i=1;i<=n;i++) for(j=1;j<=n;j++) scanf("%d",&c[i][j]); kruskals(); getch(); }
int main() { int n, a[10][10], i, j; printf("Enter the number of nodes: "); scanf("%d", &n); printf("Enter the cost adjacency matrix:\n"); for (i = 1; i <= n; i++) for (j = 1; j <= n; j++) scanf("%d", &a[i][j]); kruskals(a, n); return 0; }