会程序语言的请进

来源:百度知道 编辑:UC知道 时间:2024/09/20 11:56:42
随意输入三个数,然后输出最大的数的程序怎样写,急呀,各位大哥,谢谢了

C语言是这样的:
main()
{int a ,b,c,t;
printf("input a,b,c:");scanf("%d%d%d",&a,&b,&c);
printf("a=%d,b=%d,c=%d\n",a,b,c);
if(a>b)
{t=a;a=b;b=t;}
if(a>c)
{t=a;a=c;c=t;}
if(b>c)
{t=b;b=c;c=t;}
printf("%d,\n",c);
}

那个语言个呀?
你是要整个程序,还是输出大小函数?

http://zhidao.baidu.com/question/2416167.html

c的
--------------------
#include"stdio.h"
main()
{ int a,b,c,s;
scanf("%d%d%d",&a,&b,&c);
s=a>b?a:b;
if(s<c)
s=c;
printf("%d",s);

getch();
}

#include"stdio.h"
main()
{ int i,j,k,max;
printf("please input three numbers");
scanf("%d%d%d",&i,&j,&k);
if(i>=j) max=i; else max=j;
if(k>