2011年4月27日 星期三

分享

高中生程式解題系統 d065: 三人行必有我師

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>


int main(void) 
{
    
    int input1,input2,input3 ;
    int temp;

    while(scanf("%d %d %d",&input1,&input2,&input3)!=EOF)
    {
        if(input1 > input2)
            temp = input1;
        else 
            temp = input2;

        if(temp > input3)
            printf("%d\n",temp);
        else
            printf("%d\n",input3);
    
    }

    return 0;
}

沒有留言:

張貼留言