whats the use of the const global variables? y r u re-declaring them in main? just think whats the objective of the code, what will be the min number or variables required,their types and usage and then re-write the code.
Agni
Practically a Master Poster
655 posts since Dec 2007
Reputation Points: 431
Solved Threads: 116
Maybe you forgot to print the sellingPrice, taxAm and the total. What you did is you just asked the user for the data you needed. I don't know the objective of this program but I guess you need to obtain the sellingPrice blah blah. And oh, chandra.rajat is right, what's the use of the values of the global variables?
jaepi
Practically a Master Poster
647 posts since Jul 2006
Reputation Points: 32
Solved Threads: 4
I'll second what Ravenous Wolf had to say:
All you need to do is display the results! (oops)
JRM
Practically a Master Poster
621 posts since Nov 2006
Reputation Points: 130
Solved Threads: 75