forked from mecchmatProjects/CppCourse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3.6.c
More file actions
37 lines (34 loc) · 705 Bytes
/
3.6.c
File metadata and controls
37 lines (34 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
int a1, b1, c1;
int a, b, c;
printf("Enter a, b, c: ");
scanf("%d", &a1);
scanf("%d", &b1);
scanf("%d", &c1);
a = abs(a1);
b = abs(b1);
c = abs(c1);
if(a >= b && a >= c) {
printf("A is the biggest num");
printf("\n");
} else if(b >= a && b >= c) {
printf("B is the biggest num");
printf("\n");
} else {
printf("C is the biggest num");
printf("\n");
}
if(a <= b && a <= c) {
printf("A is minor num");
printf("\n");
} else if(b <= a && b <= c) {
printf("B is minor num");
printf("\n");
} else {
printf("C is minor num");
printf("\n");
}
return 0;
}