السلام عليكم احد عنده فكره كيف اعمل flowchart لهذا السؤال :

Develop the solution to input a number and then print a table showing how many digit appears in the number.

A sample run is shown below:

Enter number: 133562

        Digit: 0 1 2 3 4 5 6 7 8 9

Occurrence 0 1 1 0 2 0 1 1 0 0 0

Idea: You can use an array of 10-elements to record the occurrences of each digit (0 to 9) in the number. use MOD operator ( i.e.remainder)

To extract the digits