-
October 14th, 2012, 07:18 AM
#1
Summing up digits in an integer
I'm a 50 year old trying to learn Visual Basic. I need help as follows:
I want to write a macro to check which integer from 100 to 999 has its sum of digits divisible by 3
e.g.435 = 4+3+5 = 12 and 12 is divisible by 3.
Thanks in advance for your assistance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|