I'm sitting right in front of my computer but I don't have a clue where my mistake is. So here is my code in C:
#include <stdio.h>
#include <math.h>
double f (double x);
int main ()
{
double x;
printf("Please type in a decimal number: ");
scanf("&lf", &x);
printf("%", f(x));
return 0;
}
double f (double x)
{
return (fabs(x) * sin(x) * 10e-2);
}
I read the code multiple times but I'm either too stupid or just not able to find the mistake. Please help me. I would be very glad if you'd help me.
Hopefully, you guys have an idea or a tip for me (even that would be helpful).