HI
I'm newby with C and this is not working. we all know that cos Pi is -1
but answer here is 1.000000 !!!! i use MS compile so please help!!!
extern void main();
extern int printf();
extern double cos();
void main(){
#define Pi 22/7
printf("%lf",co s(Pi));
return;
}
answer
1.000000 <--- not right!!!!!
thanks everyone :)
I'm newby with C and this is not working. we all know that cos Pi is -1
but answer here is 1.000000 !!!! i use MS compile so please help!!!
extern void main();
extern int printf();
extern double cos();
void main(){
#define Pi 22/7
printf("%lf",co s(Pi));
return;
}
answer
1.000000 <--- not right!!!!!
thanks everyone :)
Comment