[solved] – Question 7697
Read a positive integer n. From 1 to n monitor the occurrence of 1. Your program should contain the method Monitor1. Include an option to repeat the process.
Sample Output
Enter the value of n: 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Total Occurrence of 1: 8
Try again Y/N?
Expert Answer
OR

