Assignment :

28. Implement a program that takes 10 integers from the user in the range 0 to 9 (there can be repetition). The program should count how many times a specific integer is entered by the user. Now implement a 1D array of size 10 with all locations initially set to zero. Each location of the array will now act as a counter for the integers entered by the user. For example the number of 5’s entered by the user should be saved in array location a[5] and so on. Display the occurrence of each integer on the output screen.


any solutions??
Please note that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.
Topic archived. No new replies allowed.