【每日刷题】 PAT 基础习题集 7-9 用天平找小球 (10 分)

题目描述:
在这里插入图片描述
代码如下:

//7-9
#include <stdio.h>
int main ( void )
{
	int a, b, c;
	scanf( "%d%d%d", &a, &b, &c );
	if( a == b )
		printf( "C" );
	else if( a == c )
		printf( "B" );
	else if( b == c )
		printf( "A" );
	return 0;
}

猜你喜欢

转载自blog.csdn.net/qq_40344308/article/details/88647938