solved
Last edited on
You called the function twice. So line 21 was executed twice.
What did you expect to happen?
sorry, my mistake, solved. Thing in functionis of course executing before that in main.
sorry for deleting. Just forgot basics.
thanks!!!