View Code of Problem 68

#include <stdio.h>
//有三个整数a b c,由键盘输入,输出其中的最大的数。
int main()
{
  int a,b,c,max;
  scanf("%d%d%d",&a,&b,&c);
  if(a>b)
    max = a;
  else
    max = b;
  if(c>max)
    max = c;     
  printf("%d",max);
  return 0;
}

Double click to view unformatted code.


Back to problem 68