Skilled Illusionist
- Joined
- Jul 12, 2008
- Messages
- 303
- Reaction score
- 3
Hey, I was wondering if someone could help me start this?
Or any help would be good.
I'm not allowed to use any header besides
iostream
string
and I think thats all.
How should I approach this problem?
Thanks !
Or any help would be good.
I'm not allowed to use any header besides
iostream
string
and I think thats all.
How should I approach this problem?
Thanks !
PHP:
1.
Write a function named as printCommonDigitWithoutArray() (no arrays are allowed) that will
(i)
Receive two integers as arguments, and
(ii)
Print all common digits that are seen in both arguments, and
(iii)
For each common digit, print also how many times the digit occurs in the first argument and how many times the digit occurs in the second argument.
2.
Write a program with function main() making 2 calls to the above function with the following series of values,
{ 1268349000, 117225788 }
{ 1172245700, 983222276 }
What is the EXACT output of the program?