You are on page 1of 2

1.

ALGORITMA MEMASAK NASI if ambil beras then cuci beras then if masukkan beras kedalam megigjar then isi air sesui takaran if tutup megigjar then hudupkan megigjar setelah hidup then tunggu 45 menit end if end if end if

2. Program PASCAL Program rata_rata; Var: X N K Begin Write(N:);read (N); Write(X:);read (X); Rata:=KK+1; Write(ratajumlah/N); End. :integer; :integer; :integer;

3. Program C /*program nilai_rata_rata*/ /*program menghitung nilai rata rata*/ Main() { /*deklarasi*/ Integer X; Integer N; Integer K; \*algoritma*/ Printf(N=);scanf(%s,&N); Printf(X=);scanf(%s,&X); Rata=KK+1; Printf(ratajumlah/N);

You might also like