| | |
Counting occurrence of numbers in C
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Oct 2005
Posts: 6
Reputation:
Solved Threads: 0
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?
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?
•
•
•
•
Originally Posted by stabule
I'm still a beginner, don't really know how to write the coding. Could you help me out?
•
•
•
•
Originally Posted by stabule
I've been working on this for 2 weeks and have done my share of studying. The reason I'm posting here is because I really need help. I understand the logic and the sequence in which it must be written in, but I'm really stuck with the coding.
![]() |
Similar Threads
- Loop counting odd and even numbers (C++)
- Counting the amount of numbers in one integer? (C++)
- Counting occurences in C (C)
Other Threads in the C Forum
- Previous Thread: i am a to c programing..and a doubt about pointers
- Next Thread: Binary Tree Traversal
| Thread Tools | Search this Thread |
* adobe api array arrays bash binarysearch calculate centimeter char cm convert copyanyfile copypdffile createcopyoffile createprocess() csyntax directory dynamic fflush file floatingpointvalidation fork forloop frequency getlasterror getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling gtkwinlinux hardware highest homework i/o ide inches initialization intmain() iso km linked linkedlist linux linuxsegmentationfault list logical_drives loopinsideloop. match matrix microsoft motherboard mqqueue multi mysql oddnumber odf open opendocumentformat opensource openwebfoundation pattern pdf performance pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition scanf scheduling segmentationfault send shape single socketprogramming stack standard strchr string strings suggestions test testautomation unix urboc user variable voidmain() whythiscodecausesegmentationfault win32api windows.h






