include stdio include stdlib include math int main double printf Vvedi

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
double f,x,y,a,b;
printf("Vvedite x\n");
scanf("%lf", &x);
printf("Vvedite y\n");
scanf("%lf", &y);
a=x-y;
b=x*y;
if (a!=0 && b>0)
{
f= sqrt(b)+1/(a);
printf("f=%lf\n",f);
}
else
printf("HE PEIIIUTb");
system("pause");
return 0;
}