You are on page 1of 1

srfdtrby hiATA KULIAH : Praktek Algoritma & Pemrograman DOSEN : Murnawan, S.T.

0 SOAL DARI TINGKAT 2


. Buat Pyramid Angka 10 baris, seperti gambar di bawah:
232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 901
65432109 0123456789876543210
LGORITMA PEMROGRAMAN
ODING:
======================================================== #include <iostrea
include <conio.h> int main() { clrscr(); int x, y, z, bil=10; for( x = 1;
il; x++ ) { for( z = bil; z >= x; z-- ) cout << ' '; for( z = x; z < 2*x;
{ y = z % 10; cout << y; } for( z = 2*(x-1); z >= x; z-- ) { y = z % 10; cATA KULIAH : Praktek
Algoritma & Pemrograman DOSEN : Murnawan, S.T.
0 SOAL DARI TINGKAT 2
. Buat Pyramid Angka 10 baris, seperti gambar di bawah:
232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 901
65432109 0123456789876543210
LGORITMA PEMROGRAMAN
ODING:
======================================================== #include <iostrea
include <conio.h> int main() { clrscr(); int x, y, z, bil=10; for( x = 1;
il; x++ ) { for( z = bil; z >= x; z-- ) cout << ' '; for( z = x; z < 2*x;
{ y = z % 10; cout << y; } for( z = 2*(x-1); z >= x; z-- ) { y = z % 10; cATA KULIAH : Praktek
Algoritma & Pemrograman DOSEN : Murnawan, S.T.
0 SOAL DARI TINGKAT 2
. Buat Pyramid Angka 10 baris, seperti gambar di bawah:
232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 901
65432109 0123456789876543210
LGORITMA PEMROGRAMAN
ODING:
======================================================== #include <iostrea
include <conio.h> int main() { clrscr(); int x, y, z, bil=10; for( x = 1;
il; x++ ) { for( z = bil; z >= x; z-- ) cout << ' '; for( z = x; z < 2*x;
{ y = z % 10; cout << y; } for( z = 2*(x-1); z >= x; z-- ) { y = z % 10; c

You might also like