0% found this document useful (0 votes)
45 views12 pages

Array

This document introduces a group of four students - Ai Nuraela, Tika Patimah, Nurul Azzahra, and Eneng Herlina - who are working on a program to calculate squares of input numbers in Pascal. It provides the student names, student IDs, and an overview of the steps taken before and after running the program, including processing and listing the program code.

Uploaded by

Ai_Nurlaela_1084
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views12 pages

Array

This document introduces a group of four students - Ai Nuraela, Tika Patimah, Nurul Azzahra, and Eneng Herlina - who are working on a program to calculate squares of input numbers in Pascal. It provides the student names, student IDs, and an overview of the steps taken before and after running the program, including processing and listing the program code.

Uploaded by

Ai_Nurlaela_1084
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Assalamualaikum Wr.

Wb
AnNyongHaseo~
cHingu^^

Perhitungan kuadrat

Hwanyong program uri,,,^^


Anggota
 Ai Nuraela…(lee yemul)
 (08512031)
 Tika Patimah..(heeyung
min)
 (08512034)
 Nurul Azzahra..(Amhae
Sung )
 (08512043)
 Eneng Herlina..(Shin
Hyukchul )
 (08512041)
Sebelum di run
Sesudah di Run
Memproses
Listing Program
var
Form1: TForm1;
var a,b,d:integer;
z:string;
input:array[0..400] of string;
bilangan:array[0..400]of integer;

implementation

{$R *.dfm}
ROCEDURE TFORM1.BUTTON1CLICK(SENDER:
TOBJECT);
VAR A,B,D:INTEGER;
Z:STRING;
INPUT:ARRAY[0..400] OF STRING;
BILANGAN:ARRAY[0..400]OF INTEGER;
BEGIN
Z:=INPUTBOX('INPUT','TENTUKAN
BANYAKNYA DATA :','');
D:=STRTOINT(Z);
LISTBOX1.ITEMS.ADD('BANYAKNYA DATA
YANG DIINPUTKAN = '+Z);
FOR B:=1 TO D DO
BEGIN
INPUT[B]:=INPUTBOX('INPUT','MASUKK
AN BILANGAN KE-'+INTTOSTR(B)+' :', '');
A:=STRTOINT(INPUT[B]);
BILANGAN[A]:=A*A;

END.
LISTBOX1.ITEMS.ADD('KUADRAT DATA
KE-'+INTTOSTR(B)+' : '+INTTOSTR(A)+' =
'+INTTOSTR(A)+' X '+INTTOSTR(A)+' =
'+INTTOSTR(BILANGAN[A]));
END;

END;
Wassalamu
Wassalamu ‘alaikum
‘alaikumWr.
Wr.Wb.
Wb.
Kamsahamnida
Kamsahamnida
chingu~
chingu~

You might also like