#include int n1,n2,a[20],b[20]; int findindex(int x); void main() { int i,j; printf("Enter the number of blocks :"); scanf("%d",&n1); printf("Enter the number of jobs :"); scanf("%d",&n2); int vis[n2],c[n1]; printf("Enter the size of blocks : "); for(i=0;i=x) { if(a[i]>largest) { found=1; index=i; largest=a[i]; } } } if(found==0) return 100; else return index; }