• API
• FAQ
• Tools
• Archive
SHARE
TWEET

# Untitled

a guest Apr 10th, 2020 125 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. # include <stdio.h>
2. # include <locale.h>
3. # include <math.h>
4. # pragma warning(disable: 4996)
5.
6.
7. int main()
8. {
9.   setlocale(LC_ALL, "RUS");
10.   int a,b,c;
11.   scanf("%d %d %d", &a, &b, &c);
12.   if((a==b)&&(b==c)){
13.     printf("a = %d, b = %d, c = %d\n", a, b, c);
14.   }
15.   else
16.   if((a==b)&&(a<c)){
17.     printf("a = %d, b = %d, c = %d\n", c*c, c*c, c);
18.   }
19.   else
20.   if((a==c)&&(a<b)){
21.     printf("a = %d, b = %d, c = %d\n", b*b, b, b*b);
22.   }
23.   else
24.   if((b==c)&&(b<a)){
25.     printf("a = %d, b = %d, c = %d\n", a, a*a, a*a);
26.   }
27.   else
28.   if ((a<=b)&&(b<=c)){
29.     printf("a = %d, b = %d, c = %d\n", c*c, b, c);
30.   }
31.   else
32.   if((a<=c)&&(c<=b)){
33.     printf("a = %d, b = %d, c = %d\n", b*b, b, c);
34.   }
35.   else
36.   if((b<=a)&&(a<=c)){
37.     printf("a = %d, b = %d, c = %d\n", a, c*c, c);
38.   }
39.   else
40.   if((b<=c)&&(c<=a)){
41.     printf("a = %d, b = %d, c = %d\n", a, a*a, c);
42.   }
43.   else
44.   if((c<=a)&&(a<=b)){
45.     printf("a = %d, b = %d, c = %d\n", a, b, b*b);
46.   }
47.   else printf("a = %d, b = %d, c = %d\n", a, b, a*a);
48. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
Top