This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

help needed


Hi,
I am writing C++ program for displaying a table of tangents given the
lower and upper limits. The program initially rounds off ( e.g if one
enters 29.58 and 30.33, it rounds off it to 29.6 and 30.3), and output the
result in a table form. I have this problem with displaying the table
completely and correctly, it was challenging for me to figure out where
was I going wrong? Can you please help me out with it.

When I entered, 29.58 30.33 it stops at 30.2, for 32 34, it stops at 33.9
but when I entered 84.14 84.44 and 89.44 89.48 it gives me correct table.
I am enlcosing the code that I wrote.

Thanks,
Nagu

Attachment: hw3.cpp
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]