Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Need the actual logic of beelow problem (http://www.go4expert.com/forums/actual-logic-beelow-t18839/)

sdmahapatra 5Aug2009 21:34

Need the actual logic of beelow problem
 
Hi everyone I couldn't find the actual logic behind below two problems:
Code:

(1) how to capture number of occurrences of 3 between 1 to 100? and
(2) assigns a function to a pointer and subsequently call it.

all problems are in c++

As I'm new in this field so,please help me to sweep out the problems.
Thanks and regards
sdmahapatra

Saket 5Aug2009 22:50

Re: Need the actual logic of beelow problem
 
For 1st program you can go like this, check for the number. for example say number is 53...so check for each numbr, first 5 and then 3.


All times are GMT +5.5. The time now is 04:15.