fcfs code
fcfs code
h>
int main()
int n, i;
scanf("%d", &n);
printf("Enter Arrival Time and Burst Time for Process %d: ", i + 1);
at[i] = at[j];
at[j] = tem
temp = bt[i];
bt[i] = bt[j];
bt[j] = temp;
}
}
else
avg_tat += tat[i];
avg_wt += wt[i];
printf("\nP\tAT\tBT\tCT\tTAT\tWT\n");
return 0;