Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdio.h"
- #include "conio.h"
- int main(void)
- {float x,y,z;
- printf("Vvedite tri chisla\n");
- scanf("%f,%f,%f",&x,&y,&z);
- if(x!=y)
- {if(y!=z)
- {if(x!=z)
- {if(x+y+z<1)
- {if(x<y)
- if(x<z)
- x=(y+z)/2;
- else
- z=(x+y)/2;
- else
- if(y<z)
- y=(x+z)/2;
- else
- z=(x+y)/2;
- }
- }
- }
- else
- if(x<0)
- if(y<0)
- if(z<0)
- if(x<y)
- x=(x+y+z)/2;
- else
- y=(x+y+z)/2;
- else
- if(x<y)
- x=(x+y)/2;
- else
- y=(x+y)/2;
- else
- if(y<x)
- y=x/2;
- else;
- else;
- }
- else;
- printf("%f,%f,%f",x,y,z);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement