编写程序,输入a,b,c三个整数,输出其中值居中的那个数及其值
来源:百度知道 编辑:UC知道 时间:2024/05/19 08:23:19
#include<stdio.h>
main()
{
int a,b,c,t;
scanf("%d%d%d",&a&b&c);
if(a>b&&a<c||a>c&&a<b)
t=a;
if(b>a&&b<c||b>c&&b<a)
t=b;
if(c>a&&c<b||c>b&&c<a)
t=c;
printf("%d",t);
}
好久没写了,不知道对不对.
#include <stdio.h>
main()
{
int a,b,c,x;
printf("please input the nunber:\n");
scanf("%d,%d,%d",&a,&b,&c);
if(a>b)
{x=a;a=b;b=x;}
if(a>c)
{x=a;a=c;c=x;}
if(b>c)
{x=b;b=c;c=x;}
printf("the middle number is:%d",b);
}
C语言编写程序,输入a、b、c三个数,打印出最大者.
编写一个C程序,输入a,b,c三个值,输出其中最大者
编写一个程序,输入a、b、c三个值,输出其中最大者
有关C语言的,编写一个C语言程序,输入a,b,c三个值,输出其中最大者
编写一个c程序 输入a b c 三个值 输出其中最大者我做的对不对?刚学
编写一个C程序,输入a,b,c三个值,输出其中最大者。怎么编啊?
编写程序,输入a,b,c三个数,打印出它是奇数还是偶数 要求用if语句实现
编写程序,输入a,b,c三个整数,输出其中值居中的那个数及其值
编写程序,求S=A!+B!+C!,其中A、B、C由InputBox输入
如何用C语言编写一个计算机程序,实现任意输入三个数a,b,c,将他们按照从大到小的顺序输出