include stdio include stdlib include math int main int argc char argv

 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
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(int argc, char *argv[])
{
double t, s, f;
printf("t=");
scanf("%lf=", &t);
printf("s=");
scanf("%lf=", &s);
if(s>4 || s<=4)
{
if (s>4)
f=3*t-1;
if (s<=4)
f=sprt(abs(t-s));
}
else
f=s+2;
printf("%lf",f);
system("PAUSE");
return 0;
}