thanks! it worked and thanks salem i keep forgetting.
what is the importance of putting return 0; at the end if it works without it? thanks
Type: Posts; User: psynt555
thanks! it worked and thanks salem i keep forgetting.
what is the importance of putting return 0; at the end if it works without it? thanks
I've been trying to grasp POW in C.
the code i have is:
#include <stdio.h>
#include <math.h>
int main()
{
I tried the %lf thing and it didn't work, of course due to my compiling not being proper, so once I tried the compiling WITH your recommendation of using %lf instead of %f, it worked.
So thankyou...
edited above, different problem has come up.
it won't compile
/tmp/ccgGoNoC.o: In function `hypo':
hypotenuse.c:(.text+0x55): undefined reference to `sqrt'
collect2: ld returned 1 exit...
EDIT!!
It doesn't even compile
it says:
/tmp/ccgGoNoC.o: In function `hypo':
hypotenuse.c:(.text+0x55): undefined reference to `sqrt'
collect2: ld returned 1 exit status
hi guys, this is the question i have been given:
A large company pays its salespeople on a commission basis. The sales people receive £200 per week, plus 9% of their gross sales for that week. ...
hi i have been asked to input 2 integers, a drivers MILES and LITRES of fuel they have used.. i am then meant to printf the miles per litre for that specific entry AND a running total of the combined...