Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <stdio.h>
- # include <locale.h>
- # include <math.h>
- # pragma warning(disable: 4996)
- int main()
- {
- setlocale(LC_ALL, "RUS");
- int a,b,c;
- scanf("%d %d %d", &a, &b, &c);
- if (a<b){
- if (a<c){
- if(b>c){
- a=b*b;
- }
- a=c*c;
- c=b*b;
- }
- c=b*b;
- }
- if(b<c){
- if (a>c){
- b=a*a;
- }
- b=c*c;
- }
- c=a*a;
- printf("a = %d, b = %d, c = %d\n", a, b, c);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement