View Single Post
  #3 (permalink)  
Old September 18th, 2006, 03:04 PM
skoob1152 skoob1152 is offline
Authorized User
 
Join Date: Mar 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to skoob1152 Send a message via Yahoo to skoob1152
Default

I hope you are kidding (wambozi) do you know what is scanf function?
I think you don't, but you will learn some day I hope.

Here is your answer vincentaries, you are declaring "a" as int, but you are using: scanf("% "d" \n", &a); %d this is four double not for int so try this: scanf("%lf\n", &a); this shoud resolve you'r problem;)

PD. you can use the %lf and save it in double variable but not vise-verse.

Reply With Quote