#include<stdio.h>

int action(int m[5], int s)

{

    int i;

    for(i=0; i<5; i++)

    {

        if(m[i]==s)

            return 0;

    }

    return 1;

}

 

int main()

{

    int n[5], temp, i, j, low, high, m=5;

    for(i=0; i<5; i++)

    {

        scanf("%d", &n[i]);

    }

 

    for(i=0; i<5; i++)

    {

        for(j=0; j<5-i-1; j++)

        {

            if(n[j]>n[j+1])

            {

                temp=n[j];

                n[j]=n[j+1];

                n[j+1]=temp;

            }

        }

    }

    low = n[0];

    high = n[4];

    for(i=low+1; i<high; i++)

    {

        if(action(n, i)==1)

        {

            printf("%d ", i);

        }

    }

 

    return 0;

}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: