Basic programming topics set 7-9 to find a small ball with the balance (10 points)

Here Insert Picture Description

#include <stdio.h>
int main()
{
    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;
}
Published 287 original articles · won praise 117 · Views 8945

Guess you like

Origin blog.csdn.net/qq_44458489/article/details/105377312