Implement SRTN using the C programming language. Accept input in the following format Enter number of processes: 3 Enter arrival time of P0: 5 Enter burst time of P0: 3 Enter arrival time of P1: 1 Enter burst time of P1: 7 Enter arrival time of P2: 2 Enter burst time of P2: 4
The output should be in the following format:
Average waiting time: zzzz.z
Average turnaround time: zzzz.z
Average response time: zzzz.z