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
Google AI PRO - 18 Month
Sanathbh
Updated:
Today at 2:42 PM
Ad icon
Singapore V2Ray VPN for Tunneling
hu KANNA
Updated:
Monday at 9:03 PM
Plan your Crypto & Forex entries before you take the trade
romeshnonis
Updated:
Monday at 3:20 AM
RHCSA, RHCE, AWS, Docker, Kubernetes Training
Sanjeewani95
Updated:
Sep 8, 2026
🛡️ Kaspersky Antivirus – 1 Year / 1 Device | Rs. 2,300 | Only 9 Left
KSPathirana
Updated:
Sep 7, 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
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom