include <stdio.h>
include <graphics.h>
include <conio.h>
// Swap function to swap two values
void swap(int a, int b) {
int temp = a;
a = b;
b = temp;
}
// Function to plot the Gantt chart
void plotGraph(int n, int p[], int at[], int bt[], int ct[]) {
int gd = DETECT, gm;
initgraph(&gd, &gm, "C:\TC\BGI"); // Specify your path to BGI files correctly
setbkcolor(WHITE);
cleardevice();
setcolor(BLACK);
outtextxy(50, 20, "Process Scheduling Chart");
}
// Main function to take input and run the scheduling
int main() {
printf("Enter the number of processes: ");
int n;
scanf("%d", &n);
}