7-22 用天平找小球

时间:2019-12-12 12:05:25   收藏:0   阅读:113

技术分享图片

 1 #include <stdio.h>
 2 
 3 int main(void)
 4 {
 5     int a, b, c;
 6     char other;
 7 
 8     scanf("%d %d %d", &a, &b, &c);
 9 
10     if (a == b)
11     {
12         other = C;
13     }
14 
15     if (a == c)
16     {
17         other = B;
18     }
19 
20     if (b == c)
21     {
22         other = A;
23     }
24 
25     putchar(other);
26 
27     return 0;
28 }

原文:https://www.cnblogs.com/2018jason/p/12027855.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!