include stdio include stdlib include math main double printf Vvedite s

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
main()
{
double f,t,s;
printf("Vvedite t \n");
scanf("%lf", &t);
printf("Vvedite s \n");
scanf("%lf", &s);
f= (s>4) ? (3*t-1) : ( (s<=4 && t!=0) ? ( sqrt(fabs(t-s)) ) : (s+2) );
printf("%lf",f);
system("pause");
return 0;
}