Flash Website Builder- Trendy Site Builder is a Flash Site Building tool that helps users build stunning websites. Check Out Custom Custom Logo Design by LogoBee. Website Design and Free Logo Templates available.
 CodingForums.com c++ for loop question!

Before you post, read our: Rules & Posting Guidelines

Enjoy an ad free experience by logging in. Not a member yet? Register.
 04-12-2013, 11:39 PM PM User | #1 xsxs New to the CF scene   Join Date: Apr 2013 Posts: 2 Thanks: 1 Thanked 0 Times in 0 Posts c++ for loop question! Hi, I recently started for loop in C++ and I am stuck on a question. I'm hoping that someone will be able to help me with this. Write a program which accepts as input a positive integer and checks, using the algorithm described below, to see whether or not the integer is divisible by 11. This particular test for divisibility by 11 was given in 1897 by Charles L. Dodgson (Lewis Carroll). Algorithm: As long as the number being tested has more than two digits, form a new number by: • deleting the units digit • subtracting the deleted digit from the shortened number The remaining number is divisible by 11 if and only if the original number is divisible by 11. I have to use a FOR LOOP.
04-13-2013, 09:08 AM   PM User | #2
abduraooft
Supreme Master coder!

Join Date: Mar 2007
Location: N/A
Posts: 14,776
Thanks: 159
Thanked 2,213 Times in 2,200 Posts
Quote:
 I'm hoping that someone will be able to help me with this.
May be, but we all have to follow this forum rules.
Quote:
 1.5) No homework assignments - Do not post your entire homework assignment and request that other members do it for you. This is considered cheating, and your thread may even be used by your school to prove your guilt. Now, you may ask for advice or help on a specific aspect of your assignment that you're having trouble with. Use common sense as far as what's acceptable in terms of soliciting help with homework assignments.
__________________
Quote:
 The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

 Users who have thanked abduraooft for this post: xsxs (04-14-2013)
 04-13-2013, 05:30 PM PM User | #3 xsxs New to the CF scene   Join Date: Apr 2013 Posts: 2 Thanks: 1 Thanked 0 Times in 0 Posts ok sorry about that, is it possible to delete my question?

 Bookmarks

 Thread Tools Rate This Thread Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home :: Client side development     JavaScript programming         DOM and JSON scripting         Ajax and Design         JavaScript frameworks         Post a JavaScript     HTML & CSS     XML     Flash & ActionScript         Adobe Flex     Graphics and Multimedia discussions     General web building         Site reviews         Building for mobile devices :: Server side development     Apache configuration     Perl/ CGI     PHP         Post a PHP snippet     MySQL         Other Databases     Ruby & Ruby On Rails     ASP     ASP.NET     Java and JSP     Other server side languages/ issues         ColdFusion         Python :: Computing & Sciences     Computer Programming     Computer/PC discussions     Geek News and Humour Web Projects and Services Marketplace     Web Projects         Small projects (quick fixes and changes)         Medium projects (new script, new features, etc)         Large Projects (new web application, complex features etc)         Unknown sized projects (request quote)         Vacant job positions         Looking for work/ for hire         Project collaboration/ partnership         Paid work offers and requests (Now CLOSED)     Career, job, and business ideas or advice     Domains, Sites, and Designs for sale         Domains for sale         Websites for sale         Design templates and graphics for sale :: Other forums     Member Offers     Forum feedback and announcements

All times are GMT +1. The time now is 06:38 AM.