sum of digits between a range

#include <stdio.h>
    #include <stdlib.h>
 
    int main(){
 
        int a, b, c;
        printf("Please enter your numbers: \n");
        scanf("%d%d%d", &a, &b, &c);
 
 
        if(a!=b && b!=c){
            if(((a<b) &&(b<c)) || ((c<b) && (b<a))){
                    printf("' %d ' is middle number.", b);
            }
 
            if(((b<a) &&(a<c)) || ((c<a) && (a<b))){
                    printf("' %d ' is middle number.", a);
            }else{
                    printf("' %d ' is middle number.", c);
            }
 
        }
 
    }
 
 
Close