poj2578---三个数中找出第一个大于168的

#include <stdio.h>

#include <stdlib.h>



int main()

{

    int a,b,c;

    scanf("%d %d %d",&a,&b,&c);

    if(a <= 168)

    {

        printf("CRASH %d\n",a);

        return 0;

    }

    if(b <= 168)

    {

        printf("CRASH %d\n",b);

        return 0;

    }

    if(c <= 168)

    {

        printf("CRASH %d\n",c);

        return 0;

    }

    printf("NO CRASH\n");

}
View Code

 

你可能感兴趣的:(poj)