include stdio include stdlib int main void double printf scanf lf prin

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
double F, m, n;
printf("m=");
scanf("%lf", &m);
printf("n=");
scanf("%lf", &n);
F=n<0?(m>0?m+n*n:m+2*n):m+1;
printf ("F=%lf", F);
system("PAUSE");
return 0;
}