Hello forum, first off excuse my bad english I will try to explain my problem the best as I can and thank you very much for your help.
In this program I need to take some data from 10 customers, 1 by 1 you enter the info of each customer then it will clear the screen and show the results of it.
I think you will understand better if you see these pictures:
If you see at the last one it clears all the screen deleting customer 1 results, I want it to only clear the info you typed about customer 2, show costumer 2 results but keeping customer 1 results, till it gets to customer 10.
I'm not sure if to do this you need to use another command instead of system ("cls")
If you didn't understand something just tell me :)
Sorry for the late answer and thank you for the code it fixed the issue but now it doesn't show the results properly what can it be? also if you could, could you link me to any website that explains the use of strings detailed for a begginer? because some of your code confuses me like (customer/discount-1) and the [10] things.
A string is actually a data type. The [10] is creating an array with a size of 10. Putting it all together, you have arrays billNumber, name, and lastName what can contain 10 strings. The [] symbols you see later on is the [] operator, or for arrays, the index operator.
When using an array (of any type) the index's start at 0 and go until n-1 where n is the size of the array. That is why customer - 1 is there.