problems on statement/activity_selection.c
void ActivitySelection(int start[], int finish[], int n)
{
    printf("Following activities are selected: ");
    // Select the first activity
    int i = 0;
    printf("\n%d  ", i);
    int j;
    // if start time of current activity j is greater than or equal to previous activity chosen, select activity j
    for (j = 1; j < n; j++) 
    {
        if (start[j] >= finish[i]) 
        {
            printf("%d  ", j);
            i = j;
        }
    }
}
// Function to compute the activities to be chosen

Function to compute the activities to be chosen
Function to compute the activities to be chosen
void ActivitySelection(int start[], int finish[], int n)
{
    printf("Following activities are selected: ");
    int i = 0;
    printf("\n%d  ", i);
    int j;
    for (j = 1; j < n; j++) 
    {
        if (start[j] >= finish[i]) 
        {
            printf("%d  ", j);
            i = j;
        }
    }
}
void ActivitySelection ( int start [ ] , int finish [ ] , int n ) { printf ( " " ) ; int i = 0 ; printf ( " \n " , i ) ; int j ; for ( j = 1 ; j < n ; j ++ ) { if ( start [ j ] >= finish [ i ] ) { printf ( " " , j ) ; i = j ; } } }
Function to compute the activities to be chosen
Function to compute the activities to be chosen
// Select the first activity
 // if start time of current activity j is greater than or equal to previous activity chosen, select activity j
