Selasa, 14 Juni 2011

C++ : Algorithm and Program Finding The average of n positive integers

download

ANALYSIS
The formula for the amount of data on the number of data, with x, is the i-th data

ALGORITHM
{Given n data later in the search for the average}
DECLARATION
i, n, the number, x: integer
Average: real
DSKRIPSI
read (n)
total <- 0for i <- of 1 to n doread (x)total <- total + xendforaverage <- sum / nwrite (average)download
C++ : Algorithm and Program Finding The average of n positive integers

0 comments:

Posting Komentar

ALL INFORMATION Copyright © 2011 | Template created by O Pregador | Powered by Blogger