I was thinking that may be the case as well but did not go so far as to confirm if so then it is as simple as just using a mod operator
Code:If MyNumber Mod 3 = 0 Then MsgBox "Is evenly divisible" Else MsgBox "Is not evenly divisible" End If
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Thread: Summing up digits in an integerThreaded View
|
Click Here to Expand Forum to Full Width |