Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(){
  5.  
  6.         int a, b, c;
  7.  
  8.         while (scanf("%d %d %d",&a,&b,&c) != EOF){
  9.  
  10.                 if ((a==b)&&(b==c)) printf("*\n");
  11.  
  12.                 if ((c==b)&&(b!=a)) printf("A\n");
  13.  
  14.                 if ((a==c)&&(c!=b)) printf("B\n");
  15.  
  16.                 if ((a==b)&&(b!=c)) printf("C\n");
  17.  
  18.         }
  19.  
  20.         return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement