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
Ad icon
ZTE MF283U 4G Unlocked Router (Used)
ayanthamaxi
Updated:
Sunday at 8:26 PM
ලංකාවේ හොඳම උපකාරක පන්ති සහ ගුරුවරුන් එකම තැනකින් - TopTuition.lk
dulithapathum
Updated:
Saturday at 8:07 AM
Colombo
RidhMathraa ’26 🎶✨
Tmadhusanka
Updated:
Jul 15, 2026
Ad icon
Colombo
PXN V10 Pro Direct Drive Racing Wheel (Under Warranty)
Abdur Rahman
Updated:
Jul 15, 2026
Ad icon
USDT ණය සේවාව - USDT Loan Service
පුරවැසියා
Updated:
Jul 15, 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="Dileepa." data-source="post: 8003292" data-attributes="member: 298500"><p><span style="color: DarkRed"><span style="font-size: 15px">Simple Logic - in C#.net</span></span></p><p></p><p><img src="http://img715.imageshack.us/img715/4670/capture1y.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>[CODE]using System;</p><p>using System.Collections.Generic;</p><p>using System.ComponentModel;</p><p>using System.Data;</p><p>using System.Drawing;</p><p>using System.Linq;</p><p>using System.Text;</p><p>using System.Windows.Forms;</p><p></p><p>namespace CreditCardValidator</p><p>{</p><p> public partial class Form1 : Form</p><p> {</p><p> Int64 l, y,p,x;</p><p> static Int64 tot=0;</p><p> int z = 0;</p><p> public Form1()</p><p> {</p><p> InitializeComponent();</p><p> }</p><p></p><p> private void button1_Click(object sender, EventArgs e)</p><p> {</p><p> l = Int64.Parse(txt_cno.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> 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> }</p><p> }</p><p>[/CODE]</p><p><img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /><img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /><img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /></p></blockquote><p></p>
[QUOTE="Dileepa., post: 8003292, member: 298500"] [COLOR="DarkRed"][SIZE="4"]Simple Logic - in C#.net[/SIZE][/COLOR] [IMG]http://img715.imageshack.us/img715/4670/capture1y.png[/IMG] [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace CreditCardValidator { public partial class Form1 : Form { Int64 l, y,p,x; static Int64 tot=0; int z = 0; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { l = Int64.Parse(txt_cno.Text); x = l; while (true) { x = x / 10; y = l % 10; 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] :P:P:P [/QUOTE]
Insert quotes…
Verification
Haya warak paha keeyada? (haya wadi kireema paha)
Post reply
Top
Bottom