You don't need an if statement. Just follow the pseudocode posted above.
Type: Posts; User: Junky
You don't need an if statement. Just follow the pseudocode posted above.
Forget the if statement, forget the array. Just multiply by 100.
loop if input is not 0
get user input
multiply by 100
add to sum
}
display sum
Use an if statement on the user input to decide what value to add. Then again if service 1 costs 100, service 2 costs 200 etc then you could just multiply input by 100 and then add it.
To avoid an empty array element.
How about an if statement?
And???
Do you have a question? Do have errors? Do you want a pat on the back. Or do you just want someone to do your work for you?