Would you like a list?
Because the compiler will give you one for free, and you don't have to wait at all...
Lets start by looking at your functions for working out the results:
float aria(float)
{ float a, l, L;
a = L * l;
return a;
}
float perimetru(float)
{ float P, l , L;
P = 2*(l+L);
return P;
}
What values do you expect these to return?
Because you are declaring all your variables locally, so
aria
is the equivalent of:
float aria()
{
float a;
a = 0.0 * 0.0;
return a;
}
You can't access L, a, L, or P from the declaration in your
main
function, because they are only in scope and available within the
main
function itself.
Instead, try this:
float aria(float l1, float l2)
{
return l1 * l2;
}
You will need to change the prototype to match.
Then call it like this instead:
printf("\naria = %f", aria(l, L));
Then do the same fro perimetru.
And do yourself a favour: don't use single character variable names, and
never, ever, ever use two variables that only differ by case! It is a very silly idea to have "l" and "L" in the same scope as it is far, far too easy to type the wrong one...