Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
667 B
0
Indexable
Never
#include <stdio.h>

int main()
{
    int a, b, c, d;
    long int x = -10000000000, y = 10000000000;
    long long int min = 10000000000;
    scanf("%d %d %d %d", &a, &b, &c, &d);
    
    
    if ( (x <= a && a <= y) && (x <= b && b <= y) && (x <= c && c <= y) && (x <= d && d <= y) )
    {
        if(a%2!=0)
            min = a;
        
        if(b%2!=0 & (b<min))
            min = b;
        
        if (c%2!=0 & (c<min))
            min = c;
        
        if (d%2!=0 & (d<min))
            min = d;
            
        if (min != 10000000000)
            printf("%lld", min);
        else
            printf("No odd number found");
    }
    return 0;
}