What's so hard about putting some braces in your code?
else if(weight >= 25000)
input1 = 5.50;
Becomes
else if(weight >= 25000) {
input1 = 5.50;
// now you...
Type: Posts; User: Salem
What's so hard about putting some braces in your code?
else if(weight >= 25000)
input1 = 5.50;
Becomes
else if(weight >= 25000) {
input1 = 5.50;
// now you...
> i am able to do the calculate on an separate source code to see it works,
So why didn't you post this code as well?
> else if(weight >= 25000)
> input1 = 5.50;
You put the code...