首页 > 其他 > 详细

7-22 用天平找小球

时间:2019-12-12 12:05:25      阅读:113      评论:0      收藏:0      [点我收藏+]

技术分享图片

 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 }

7-22 用天平找小球

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!