Subj : Re: Math error ??? doen't make sense! To : borland.public.cpp.borlandcpp From : mike Date : Fri Jul 02 2004 03:05 am > Ch 9 Exercise 3 > ------------------- > > #include > #include > main() > { > int x,y; > long int z; > > x=7000; > y=12000; > z=x*y; > > printf("x * y == %lu\n",z); > > return 0; > } > -------------------------- > > the above code should print 84000000. > It doen't. I got 4294950144 it does for me. how are you compiling it? $ bcc32 tmp.cpp Borland C++ 5.6.4 for Win32 Copyright (c) 1993, 2002 Borland tmp.cpp: Turbo Incremental Link 5.65 Copyright (c) 1997-2002 Borland tmp.exe x * y == 84000000 mike .