Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
412 B
5
Indexable
#include <stdio.h>
#include <stdlib.h>


int main()
{
    int a, b, c, d, min;

    printf(" please enter four integers: ");
    scanf("%d%d%d%d", &a, &b, &c, &d);

    if(a%2!=0 || b%2!=0 || c%2!=0 || d%2!=0){
        min=(a,b)?a:b;
        min=(min<c)?min:c;
        min=(min<d)?min:d;
        printf("%d", min);
    }
    else
            printf("No odd number found");

    return 0;
}