/**
* Copyright (c) 2010 Alvin Aditya H
* GNU GPL License
*/
PROGRAM "GABUNGAN_MAX_DAN_RATA_RATA"
VAR
A : ARRAY [1..10] OF INTEGER;
I,J,K,MAX : integer;
TOTAL : INTEGER;
RATA2 : REAL;
Begin
FOR I := 1 TO 10 DO
begin
write('masukkan angka ',I,'= ');
READ(A[I]);
end;
MAX := A[1];
write('MAX = ');
FOR J := 2 TO 10 DO
IF MAX <= A[J] THEN MAX := A[J];
WRITELN(MAX);
Total := 0;
FOR K := 1 TO 10 DO TOTAL := TOTAL + A[K];
RATA2 := TOTAL / 10;
WRITELN('rata-rata= ',RATA2);
End.
Blog Archive
-
►
2012
(2)
- ► 04/22 - 04/29 (1)
- ► 04/01 - 04/08 (1)
-
►
2011
(6)
- ► 12/18 - 12/25 (1)
- ► 12/11 - 12/18 (1)
- ► 04/24 - 05/01 (1)
- ► 02/27 - 03/06 (2)
- ► 02/20 - 02/27 (1)
-
▼
2010
(26)
- ► 12/26 - 01/02 (6)
- ► 12/05 - 12/12 (1)
- ► 11/28 - 12/05 (1)
- ▼ 06/06 - 06/13 (4)
- ► 05/30 - 06/06 (9)
- ► 03/07 - 03/14 (2)
- ► 02/14 - 02/21 (2)
- ► 01/03 - 01/10 (1)
-
►
2009
(21)
- ► 10/18 - 10/25 (2)
- ► 09/27 - 10/04 (1)
- ► 08/23 - 08/30 (3)
- ► 06/28 - 07/05 (2)
- ► 05/24 - 05/31 (1)
- ► 02/01 - 02/08 (1)
- ► 01/25 - 02/01 (3)
- ► 01/18 - 01/25 (8)
Recent Post
Senin, 07 Juni 2010
Langganan:
Posting Komentar (Atom)
Mengenai Saya
Category
How to
(20)
software review
(12)
coding
(6)
security
(5)
Desktop Environment
(3)
Distro
(2)
teknologi
(2)
Install
(1)
Sejarah Linux
(1)
Sejarah Unix
(1)
bantuan
(1)
opini
(1)
0 komentar:
Posting Komentar