Program Pascal Menghitung nilai rata-rata (Mean).
Berikut Source codenya:
uses crt;
var
x: array [1..100] of integer;
n,i,sum:integer;
mean: real;
begin
write('n:');readln(n);
sum:=0;
for i := 1 to n do
begin
write('x',i,'=');readln(x[i]);
sum:=sum+x[i];
end;
mean:= sum/n;
writeln('mean=',mean);
readln;
end.
skip to main |
skip to sidebar
--
My Clock
Link Situ Kesukaan
Archives
-
▼
2010
(24)
-
▼
January
(18)
- Kumpulan Judul TA Informatika
- Program C++ Hitung Vocal Pada Sebuah String
- Program C++ Graph Rekursif
- Program C++ Menentukan Irisan
- Program C++ Graph Terhubung
- Program Pascal Menentukan Bilangan ASCII
- Program Pascal Menentukan Bilangan ASCII
- Program Pascal Menentukan Derajat Graph
- Program Pascal Pengurutan dengan Selection Sort
- Program Pascal Menentukan Jumlah Bilangan Prima
- Program Pascal Metode Simplex
- GNU Software
- PENGENALAN TCP - IP
- Program Pascal Membuat Polinomial
- Program Pascal MakMin
- Program Pascal Menghitung Mean
- Program Pascal Metnum
- Program Pascal Palindrom
-
▼
January
(18)
About Me
Followers
Pengunjung Online
Shoutmix
Trafik
-
-
Editing by uliantony.co.cc
0 komentar: Program Pascal Menghitung Mean
Post a Comment