diff --git a/contributors/Lab1.2(SJF).c b/contributors/Lab1.2(SJF).c new file mode 100644 index 0000000000..016c9803b9 --- /dev/null +++ b/contributors/Lab1.2(SJF).c @@ -0,0 +1,54 @@ +#include +#include +#include +void main() +{ + int bt[20],at[10],n,i,j,temp,st[10],ft[10],wt[10],ta[10]; + int totwt=0,totta=0; + float awt,ata; + char pn[10][10],t[10]; + printf("Enter the number of process: "); + scanf("%d",&n); + printf("Enter Process no.|Arrival time|Burst time:\n"); + for(i=0; i