Advertisement
Guest User

Untitled

a guest
Sep 25th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <stdio.h>
  3.  
  4. int min(int a, int b) {
  5.     return a < b ? a : b;
  6. }
  7.  
  8. int main(int argc, char *argv[]) {
  9.     int a, b, c;
  10.  
  11.     scanf("%d %d %d", &a, &b, &c);
  12.  
  13.     if (a == b || b == c || a == c) {
  14.         printf("There are several same numbers");
  15.     }
  16.     else {
  17.         printf("%d", min(a, min(b, c)));
  18.     }
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement