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
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Wednesday at 10:50 AM
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Monday at 12:26 PM
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Sunday at 12:41 PM
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
FREE SEO Check & Google Maps Check for Sri Lankan Businesses | Web Design, Website Price Rs 14,900 |
LankaSolve
Updated:
Oct 20, 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
Winadiyakata thappara keeyak tibeda?
Post reply
Top
Bottom