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
ඔයාගෙ Assignment හෝ Thesis එක හරියට හදාගමු
ErMurazor
Updated:
Saturday at 10:52 PM
Ad icon
BlackWall V2ray servers
hu KANNA
Updated:
Wednesday at 4:58 AM
Peppa Pig Family Plush Toy Set – 5 Characters
anil1961
Updated:
Sep 19, 2026
Ad icon
Express VPN PC - 1 Year Rs. 600.00
Sanathbh
Updated:
Sep 19, 2026
Ad icon
Capcut Pro 7 Days Team Plan - Rs. 3️⃣0️⃣0️⃣
Sanathbh
Updated:
Sep 19, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
SLIIT එකේ අපි
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="Qrious" data-source="post: 15624059" data-attributes="member: 421312"><p><strong><img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /></strong></p><p></p><p><span style="font-size: 18px">ah hankok koluwa mama ube mahaloku gana haduwa. <img src="/styles/default/xenforo/smilies/default/lol.gif" class="smilie" loading="lazy" alt=":lol:" title="LOL :lol:" data-shortname=":lol:" /></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">uba hithan inne ube solution eka patta efficient kiyala neda? <img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /> mama mage solution eka danna kalin ube solution ekama thawa tikak efficient karala innamko <img src="/styles/default/xenforo/smilies/default/lol.gif" class="smilie" loading="lazy" alt=":lol:" title="LOL :lol:" data-shortname=":lol:" /></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">onna ube gon solution eka <img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p>[CODE]</p><p>#include <stdio.h></p><p></p><p>void main(){</p><p></p><p>int a=1,b=2,c,d,e=2; </p><p></p><p>for(c=1;c<20;c++)</p><p>{</p><p> d=b;</p><p> b=a+b;</p><p> a=d;</p><p></p><p> if(c==3)</p><p> {</p><p> e=e+b;</p><p> c=0;</p><p> printf("%d %d\n",b,e); </p><p> }</p><p></p><p> if(b>4000000)</p><p> break;</p><p></p><p> }</p><p></p><p>}</p><p>[/CODE]<span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">menna uba karala thiyena gon wada tika:</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">1. for loop eke <span style="color: Red">c < 20</span> kiyana condition eken kisima wadak wenne na. eka galawala puke gaha ganin. loop eka execute wena warayak gane ea condition eka check karanawa eken efficiency eka adu wenawa <img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">2. uba kiwwa neda even numbers check karanna modulus operator eka pawichchi kale na kiyala. itin harako uba wena operators walin karala thiyenneth ea wademane. <img src="/styles/default/xenforo/smilies/default/lol.gif" class="smilie" loading="lazy" alt=":lol:" title="LOL :lol:" data-shortname=":lol:" /> onna balapan:</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span>[CODE] </p><p> if (c == 3)</p><p> {</p><p> e = e + b;</p><p> c = 0;</p><p> printf("%d %d\n", b, e);</p><p> }</p><p>[/CODE]<span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">okama ubata mehema liyanna thibbane:</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><span style="font-size: 10px">[CODE] </span></span></p><p><span style="font-size: 18px"><span style="font-size: 10px"> if (c % 3 == 0)</span></span></p><p><span style="font-size: 18px"><span style="font-size: 10px"> {</span></span></p><p><span style="font-size: 18px"><span style="font-size: 10px"> e = e + b;</span></span></p><p><span style="font-size: 18px"><span style="font-size: 10px"> printf("%d %d\n", b, e);</span></span></p><p><span style="font-size: 18px"><span style="font-size: 10px"> }</span></span></p><p><span style="font-size: 18px"><span style="font-size: 10px">[/CODE]</span><span style="font-size: 18px"></span></span></p><p><span style="font-size: 18px"><span style="font-size: 18px"></span></span></p><p><span style="font-size: 18px">modulus operator eka nathuwath uba operators okkoma 4 k pawichchi karala thiyenawa. modulus operator eka thibbath okkoma operators 4 k pawichchi wenawa. itin uba modulus operator eka pawichchi kale na kiyala efficiency eke kisima wadi weemak wela na. <img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">3. uba karala thiyena anith moda wade thamai result eka calculate karana asse print karanna yana eka. printf function eka implement karanna liyapu code goda dakkoth thota kalanthe dai <img src="/styles/default/xenforo/smilies/default/lol.gif" class="smilie" loading="lazy" alt=":lol:" title="LOL :lol:" data-shortname=":lol:" />. anith eka uba deepu prashne ubama hariyata kiyawala na. eke ahala thiyenne awasana uththare witharai. intermediate values print karanna kiyala na <img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">menna ubema solution eka ubata wada efficient karala mama hadapu hati <img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p>[CODE]</p><p>#include <stdio.h></p><p></p><p>void main(){</p><p></p><p>int a=1,b=2,c,d,e=2; </p><p></p><p>for(c=1;;c++)</p><p>{</p><p> d=b;</p><p> b=a+b;</p><p> a=d;</p><p></p><p> if(c%3 == 0)</p><p> {</p><p> e=e+b;</p><p> }</p><p></p><p> if(b>4000000)</p><p> break;</p><p></p><p> }</p><p> printf("%d %d\n", b, e);</p><p>}</p><p>[/CODE]<span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">menna mage solution eka. matanam even numbers check karanna modulus operator ekawath ubata wage == (comparision operator) ekakwath one une na <img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /> . mage solution eka ube ekata wada godak efficient. ube solution eke loop eka 31 parak execute wenawa. mage solution eke loop eka execute wenne 12 parai. <img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">(C# walin liwwe. ubata mole kaladak thiyenam meka lesiyenma C walata convert karanna puluwan wenna ona)</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 12px">mata anithimata kiyanna thiyenne mechcharai. uba uba ganama ali oluwen hithan hitiyata uba hithana tharam waddek nemei uba. Thamange tharama therum aran wadiya sadda danne nathuwa wada karapan. Dan balapan mama witharak nemei thawa kee denek kiyanawada uba gona kiyala. Anika software company wala interview waladi ali oluwen inna unwa kelinma kapala danawa. mokada un ekka wena katawath ekata wada karanna bari nisa. eka hinda ali oluwa bassagena thamange aththa thaththwaya therum aragena wada karapan. </span></p></blockquote><p></p>
[QUOTE="Qrious, post: 15624059, member: 421312"] [b]:rofl:[/b] [SIZE=5]ah hankok koluwa mama ube mahaloku gana haduwa. :lol: uba hithan inne ube solution eka patta efficient kiyala neda? :P mama mage solution eka danna kalin ube solution ekama thawa tikak efficient karala innamko :lol: onna ube gon solution eka :P [/SIZE] [CODE] #include <stdio.h> void main(){ int a=1,b=2,c,d,e=2; for(c=1;c<20;c++) { d=b; b=a+b; a=d; if(c==3) { e=e+b; c=0; printf("%d %d\n",b,e); } if(b>4000000) break; } } [/CODE][SIZE=5] menna uba karala thiyena gon wada tika: 1. for loop eke [COLOR=Red]c < 20[/COLOR] kiyana condition eken kisima wadak wenne na. eka galawala puke gaha ganin. loop eka execute wena warayak gane ea condition eka check karanawa eken efficiency eka adu wenawa :P 2. uba kiwwa neda even numbers check karanna modulus operator eka pawichchi kale na kiyala. itin harako uba wena operators walin karala thiyenneth ea wademane. :lol: onna balapan: [/SIZE][CODE] if (c == 3) { e = e + b; c = 0; printf("%d %d\n", b, e); } [/CODE][SIZE=5] okama ubata mehema liyanna thibbane: [/SIZE] [SIZE=5][SIZE=2][CODE] if (c % 3 == 0) { e = e + b; printf("%d %d\n", b, e); } [/CODE][/SIZE][SIZE=5] [/SIZE] modulus operator eka nathuwath uba operators okkoma 4 k pawichchi karala thiyenawa. modulus operator eka thibbath okkoma operators 4 k pawichchi wenawa. itin uba modulus operator eka pawichchi kale na kiyala efficiency eke kisima wadi weemak wela na. :P 3. uba karala thiyena anith moda wade thamai result eka calculate karana asse print karanna yana eka. printf function eka implement karanna liyapu code goda dakkoth thota kalanthe dai :lol:. anith eka uba deepu prashne ubama hariyata kiyawala na. eke ahala thiyenne awasana uththare witharai. intermediate values print karanna kiyala na :P menna ubema solution eka ubata wada efficient karala mama hadapu hati :P [/SIZE] [CODE] #include <stdio.h> void main(){ int a=1,b=2,c,d,e=2; for(c=1;;c++) { d=b; b=a+b; a=d; if(c%3 == 0) { e=e+b; } if(b>4000000) break; } printf("%d %d\n", b, e); } [/CODE][SIZE=5] menna mage solution eka. matanam even numbers check karanna modulus operator ekawath ubata wage == (comparision operator) ekakwath one une na :P . mage solution eka ube ekata wada godak efficient. ube solution eke loop eka 31 parak execute wenawa. mage solution eke loop eka execute wenne 12 parai. :P (C# walin liwwe. ubata mole kaladak thiyenam meka lesiyenma C walata convert karanna puluwan wenna ona) [/SIZE] [SIZE=3]mata anithimata kiyanna thiyenne mechcharai. uba uba ganama ali oluwen hithan hitiyata uba hithana tharam waddek nemei uba. Thamange tharama therum aran wadiya sadda danne nathuwa wada karapan. Dan balapan mama witharak nemei thawa kee denek kiyanawada uba gona kiyala. Anika software company wala interview waladi ali oluwen inna unwa kelinma kapala danawa. mokada un ekka wena katawath ekata wada karanna bari nisa. eka hinda ali oluwa bassagena thamange aththa thaththwaya therum aragena wada karapan. [/SIZE] [/QUOTE]
Insert quotes…
Verification
Haya warak paha keeyada? (haya wadi kireema paha)
Post reply
Top
Bottom