1. Im.Just.a.Fool

    Happy Birthday nEoN_wHitE <3<3!!

    mmm.... babata mokakda danne.....Duncan White? :D
  2. Im.Just.a.Fool

    Happy Birthday nEoN_wHitE <3<3!!

    suba upan dinayak wewa neon white :)
  3. Im.Just.a.Fool

    nCr Engine(C++) + A joke

    OK. :)
  4. Im.Just.a.Fool

    nCr Engine(C++) + A joke

    spgun, Ok nevermind if it is efficient or not. oya kamathi onama widiyataka hadala post karanna. Then we can discuss about it.
  5. Im.Just.a.Fool

    nCr Engine(C++) + A joke

    If you can code a more efficient algorithm that can calculate nCr for larger values of n, please post it. :)
  6. Im.Just.a.Fool

    who is the most handsome man in sri lanka?

    mahinda mama dinai wage neda :D
  7. Im.Just.a.Fool

    nCr Engine(C++) + A joke

    mamath meka wena karanna deyak nathi kamata liwwe :D. EK eke programming karana aya (both professionals and students) godak athine. ea ayath comments danawanam godak hondai :yes:.
  8. Im.Just.a.Fool

    nCr Engine(C++) + A joke

    // This method can calculate nCr upto n = 66. The largest value for nCr // that can be stored in a Java long variable is 7,219,428,434,016,265,740 // (for n = 66, r = 33). The range of the type long in Java is from // -2^63 to 2^63-1. This method uses an array to store the prime factors //...
  9. Im.Just.a.Fool

    nCr Engine(C++) + A joke

    // Another method to calculate nCr, this method can calculate // upto n = 29. long nCr(int n, int r) { if (r > n / 2) r = n - r; long x = 1; for (int i = n; i > n-r; i--) x *= i; for (int i = 2; i <= r; i++) x /= i; return x; }
  10. Im.Just.a.Fool

    nCr Engine(C++) + A joke

    // The simplest way to calculate nCr, using factorial function. // This can calculate nCr upto n = 20. long fact(int n) { long x = 1; for (int i = 2; i <= n; i++) x *= i; return x; } long nCr(int n, int r) { return fact(n) / fact(r) / fact(n-r); }
  11. Im.Just.a.Fool

    nCr Engine(C++) + A joke

    parana thread awussala baladdi meka ahu une :D (mama thama awa witharaine). I wrote 3 methods to calculate nCr. ekin eka dannam. Java walin liwwe.
  12. Im.Just.a.Fool

    who is the most handsome man in sri lanka?

    Jolly seeye kathandarayak kiyannako
  13. Im.Just.a.Fool

    who is the most handsome man in sri lanka?

    Anarkali hitiyoth nam duminda ta vote karai :yes:
  14. Im.Just.a.Fool

    who is the most handsome man in sri lanka?

    haa haa api balamuko mama thama EK ekata awa witharane passe mata oyage bf ma kiyai eya kauda kiyala :D
  15. Im.Just.a.Fool

    My first java program

    Java IDEs walin hondama GUI Designer eka thiyenne NetBeans wala :yes: Dan MyEclipse walath Matisse GUI Designer eka thiyenawa
  16. Im.Just.a.Fool

    who is the most handsome man in sri lanka?

    tell something machan tika denek hari dannawa coolgayathra thamai handsome ma kiyala :D (mama wage moley thiyena aya)
  17. Im.Just.a.Fool

    who is the most handsome man in sri lanka?

    mama kiyawapu parana thread ekaka hatiyatanam neon white kiyala kenekui dewasmitha kiyala kenekui (nonai mahaththayai) :D
  18. Im.Just.a.Fool

    who is the most handsome man in sri lanka?

    boru kiwwama apaye yanawalu :rolleyes: :D
  19. Im.Just.a.Fool

    who is the most handsome man in sri lanka?

    ah ehenam eya elakiri eke innawada kiyannako (dawasaka dennawama alla gannam) :D
  20. Im.Just.a.Fool

    who is the most handsome man in sri lanka?

    aaah ekata kamak na kiyannako :D

    No contents