i’m unique
Simple Algorithm Example
05
May
2008

Fisrt, i have made a post about introduction to algorithm, but in indonesian language. Algorithm is logical stages that compiled systematically and logic to solve a problem. The word “logic” is the keyword in algorithm. The stage in algorithm have to earn to be determined is valuable true or false.

Now i try to make an example of algorithm, a simple example. For example, we want to know a number is even or odd. Before we can make the program, we must know the algoritm. How we can know the number is even or not.

The even number is the number which can be divided by two (the mod 2 result is zero). Example for even number : 2, 4, 6, 8, etc. So after that, now we can make the pseudocode :

  1. Start
  2. Input Number A
  3. If (A mod 2) is Zero
  4. Print “The number is Even”
  5. Else
  6. Print “The number is odd”
  7. Endif
  8. End

Or, for advance programmer, they can be direct make its program using a programming like C/C++, Pascal or a visual programming like Visual Basic, Borland Deplhi, etc.

Sumpah, sebenarnya nggak pede banget posting dengan bahasa inggris yang ancur kayak gini. Mudah-mudahan ada yang ngerti. Mohon maaf kalau banyak kesalahan apalagi sampai membuat makna yang berbeda dari maksud sebenarnya, harap maklum. Hwahuahuahua

Related Posts

3 Comment

devari
May 6th, 2008 at 9:35 am

mimih, ental wayah biin pesu ne :)

hwahuahua… tiang lek sebenarnya niki bli

LNK
LNK
May 6th, 2008 at 9:22 pm

wah… klo uda kayak gini, joint venture-nya gak jadi deh kayaknya. Huawahahaha… Keep the good works mate… :D

jangan gitu ah mas lnk, jadi malu nih

BlogDokter
May 7th, 2008 at 8:28 am

Pake bahasa Indonesia aja nggak paham ilmu begini, apalagi dalam bahasa Inggris. :)

jangan gitu dok, itu kan karena bahasa inggris saya yang ancur :D

*lagi2 komen pak dokter saya temukan nyangkut di spam comment
**garuk2 kepala, kok bisa ya?

Leave a Reply