If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hi
Sorry... my English language is bad
I am spend to much time to correct your mistake, but I am don't know what your programming doing exactly.
Be careful to next notes:
1- some time you declare variable "double" and try to use it "int".
2- don't use variable and function same name you will confused.
3- Use one way to give the variable name, don't use x,s,w1…

The program is work now but, must you complete it
I have wrong result when use "scanf" ??? I used "cin"