Solved

Check if something is devisible by 11.

Posted on 2004-05-01
2
324 Views
Last Modified: 2006-11-17
Goodmorning,

I need to check the devisiblilty of a number by 11. It is to check if a bank account is valid or not.
How do I do that in an elegant manner in C#?

thanks
Marco
0
Comment
Question by:EnolaKotrotsos
2 Comments
 
LVL 15

Accepted Solution

by:
Timbo87 earned 125 total points
Comment Utility
int acctNum = 99;
if(acctNum % 11 == 0)
     // number is divisible by 11
else
     // number is NOT divisible by 11
0
 
LVL 1

Author Comment

by:EnolaKotrotsos
Comment Utility
Thanks Timbo. I totally forgot....
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now