Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
C/C++ Coding challenges
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Enigma_1" data-source="post: 8003598" data-attributes="member: 78173"><p>[CODE]</p><p>l = Int64.Parse(textBox1.Text);</p><p> x = l;</p><p> while (true)</p><p> {</p><p> </p><p> x = x / 10;</p><p> y = l % 10;</p><p> [B][COLOR=Red] l = x;[/COLOR][/B]</p><p> if (z % 2 == 0)</p><p> {</p><p> if (y != 0)</p><p> {</p><p> p = y * 2;</p><p> Int64 x1 = p % 10;</p><p> Int64 x2 = p / 10;</p><p> tot += x1 + x2;</p><p> }</p><p> }</p><p> z++;</p><p> if (x == 0)</p><p> break;</p><p></p><p> }</p><p> if (tot % 10 == 0)</p><p> MessageBox.Show("Valid Credit Card Number!");</p><p> else</p><p> MessageBox.Show("Fuker! Enter Valid number !");</p><p> </p><p>[/CODE]very nice logic machan. but thr is a small bug (I have corrected it.). check the above code. you can track the bug by entering the number 1243 . Thks for the post <img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /><img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /><img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" />. ela ma thama</p></blockquote><p></p>
[QUOTE="Enigma_1, post: 8003598, member: 78173"] [CODE] l = Int64.Parse(textBox1.Text); x = l; while (true) { x = x / 10; y = l % 10; [B][COLOR=Red] l = x;[/COLOR][/B] if (z % 2 == 0) { if (y != 0) { p = y * 2; Int64 x1 = p % 10; Int64 x2 = p / 10; tot += x1 + x2; } } z++; if (x == 0) break; } if (tot % 10 == 0) MessageBox.Show("Valid Credit Card Number!"); else MessageBox.Show("Fuker! Enter Valid number !"); [/CODE]very nice logic machan. but thr is a small bug (I have corrected it.). check the above code. you can track the bug by entering the number 1243 . Thks for the post :yes::yes::yes:. ela ma thama [/QUOTE]
Insert quotes…
Verification
Hata thunen beduwama keeyada? (60 bedeema thuna)
Post reply
Top
Bottom