View Single Post
Old Nov 13th, 2005, 1:38 AM   #1
stabule
Newbie
 
Join Date: Nov 2005
Posts: 1
Rep Power: 0 stabule is on a distinguished road
Counting occurrence of numbers in C

Hi all.

I need help creating a prog. in C that can count the occurrence of numbers. The prog. should go like this:

Enter input 1 = 223335
Enter input 2 = 2

Output = The number 2 appears twice in "223335".

The first input can be any 6 numbers and the second input should only be 1 number.

Could someone help me out?
stabule is offline   Reply With Quote