Before someone asks, no, this is not homework (I can understand someone assuming it since it's a rather silly question), I'm just preparing myself for pascal since I will see it in a soon course and I'm putting myself some little chalenges and see what I can do about them, but I am most absolutely puzzled about this one.
Let's say I have a string of many numbers, let's say 2437341323 , and I would like to count those 3's.
For example, the number 3 appears 4 times in that string of numbers, so I'd like an output that is 4, so I can say "The number 3 shows up 4 times in this string".
How can I do this?
Excuse my bad english and thanks for your time reading this post, and if possible, answering it.