I'm trying to make a calculation in C and trying to return the result value of a mathematical calculation but nothing prints out to screen when passing to main fuction. I have tried various methods but something is missing. Can you help me correct the code in a way that will help me in the future to write more efficient code when passing arguments to main? Thanks in advance!
#include <stdio.h>
#define PI 3.14159
#define REM 144.612925
static double Raden_CALC(double imp)
{
double result;
result = ((imp + imp) * PI) / REM;
return result;
}
main()
{
double number;
printf("Enter a number: ");
fflush(stdin);
scanf("%.4lf", &number);
Raden_CALC(number);
printf("\nResult: ", number);
}