• Posted by : deari q Senin, 31 Maret 2014

    Algoritma
    {dibaca sebuah bil bulan positif, tampilkan jumlah dari 1+2+3 ...+ N }

    Deklarasi
    N = integer
    i = integer
    hasil = integer

    deskripsi
    read (N)
    hasil =0
       for i <= to N do
           hasil <= hasil + i
       endfor
    write (hasil)

    Leave a Reply

    Subscribe to Posts | Subscribe to Comments

  • - Copyright © 2013 Kampus - To Aru Kagaku no Railgun - Powered by Blogger - Designed by Johanes Djogan -