Around 07:24am on Saturday, March 14, 2009 (UK time), ruhatadiyaman scrawled:

> when i run it,for example, i give 2 for x and 4 for y,the program gives this;
> x=2.000000  y=0.000000
> result=-2.000000

What compiler are you using?  When I run your code compiled with gcc
(and without the getch) I get:

x=2.000000 y=4.000000
result=8.000000

Steve

-- 
 
(o<     www.stevesearle.com
//\     Powered by Fedora
V_/_    No MS products were used in the creation of this message

 11:58:05 up 35 days, 12:49,  1 user,  load average: 0.10, 0.03, 0.01

Reply via email to