Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_WARNINGS
- #include <stdio.h>
- int min(int a, int b) {
- return a < b ? a : b;
- }
- int main(int argc, char *argv[]) {
- int a, b, c;
- scanf("%d %d %d", &a, &b, &c);
- if (a == b || b == c || a == c) {
- printf("There are several same numbers");
- }
- else {
- printf("%d", min(a, min(b, c)));
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement