Click here to Skip to main content
15,356,705 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Given a string of numbers, identify all of the substrings that form numbers that are divisible by 3. For example, applying the algorithm on the string 37540 should produce the following substrings (not necessarily in this order): 0; 3; 75; 54; 375; 540
Posted
Comments
CPallini 26-Dec-11 16:16pm
   
Why don't you try to write the actual code? Then, switching to pseudo one would be trivial :-)

This is not a homework site.
If you cannot write some pseudocode for that problem then you need to approach your teacher and ell him of the terrible mistake you have made by taking a course that you do not understand and have not been paying attention.

Why don't you try writing some code instead of asking us to do it for you.

In the real world you have to do the work, or you go hungry.
   
Comments
theanil 26-Dec-11 14:14pm
   
my 5+
exactly Dave
How to write a Pseudo code[^]
The above link gives you information about how to write pseudo code and if you think we are going to write pseudo for your's homework then i am sorry that you are surely mistaken..
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900