Breaking News

Monday, 23 June 2014

Pseudocode

 This last notation is pseudocode notation friend. Pseudocode own notation notation notation resembles high level programming language, especially language Pascal and C. Ok, once, for example ya pal. Here I give an example of pseudocode notation to calculate the area and circumference of a circle

     Algooritma Hitung_Luas_dan _Keliling_Lingkaran
     {Entered value of the radius of the circle (r). Calculate and print a broad and circumference of a circle with the formula L = pi * r * r and K = 2 * pi * r
     DECLARATION:
       const phi = 3.14
       r, L, K = real
     DESCRIPTION:
       read (r)
       L pi * r * r
       K 2 * pi * r
       write ('Area of ​​circle =', L)
       write ('Roving Circles =', K)

No comments:

Post a Comment

Designed By Sakera News