#include #include struct sjf{ int pid; int btime; int wtime; int ttime; }P[10]; int main() { int i,n,j; struct sjf tmp; int totwtime=0,tottime=0; printf("Enter no of Processes \n"); scanf("%d",&n); for(i=0;iP[j].btime) { tmp=P[i]; P[i]=P[j]; P[i]=tmp; } } } for(i=0;i