25

#1
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(void)
{
double x,y;
int a,b,c;
char car1,car2;
printf("introduceti 2 numere reale\n");
if(scanf("%lf %lf",&x,&y)!=2)
{
printf("DE");
exit(1);
}
printf("introduceti 3 numere intregi\n");
if(scanf("%d %d %d",&a, &b, &c)!=3)
{
printf("DE");
exit(1);
}
printf("introduceti 2 caractere\n");
fflush(stdin);
scanf("%c %c", &car1, &car2);

printf("valorile introduse sunt: x=%g \ty=%g\t a=%d\t b=%d\t c=%d\t car1=%c\t car2=%c",x,y,a,b,c,car1,car2);
double fx;
if(x<0)
fx=pow(2,x)+log(abs(x));
else
if(x==0)
fx=0;
else
if(x>0)
fx= (sqrt(9+pow(x,2))+cos(x))/(2*x);
printf("\nfx=%g", fx);
return 0;
}
cron