Ex.
enter no. of students:3 //unlimited number of students but i exampled 3 only
enter student name:ben //if i input 3, name and units will show thrice
enter student units:200
enter student name:drew
enter student units:200
enter student name:lesh
enter student units:200 //note:maximum 200 units
student name units tuition
ben 18 3600 //units*200
drew 20 4000
lesh 10 2000
Could you make your question more clear? Are you wanting someone to write you the code that will output "enter no. of students: " then read an integer input. Then output "enter student name: " and "enter student units: " that many times?
Yes,please make the question more clear.As far as I have understood,
Maybe you mean.
Input no of students.
Suppose you enter 10.
So,then You'll be asked to enter the name and units 10 times?.
and display the results in a listed format.
Are you allowed to use structures?
Would make it much easier.
hey,Have you learnt structures yet?Please reply.Because I don't think it can be done without using structures.
especially the name part.
storing names need an array.and we would need to make an array of the names,which i don't have knowledge of.lol