Membuat Beberapa Pola dari C++
POLA 3
Program dibawah saya menggunakan aplikasi BORLAND C++ 5.02
Berikut kode programnya.
#include <iostream.h>
#include <conio.h>
main()
{
clrscr();
for(int c=1;c<=5;c++)
{
for(int d=1;d<=5;d++)
{
cout<<" "<<d;
}
cout<<endl;
}
getch();
}
Berikut hasil outputnya.
POLA 3
Program dibawah saya menggunakan aplikasi BORLAND C++ 5.02
Berikut kode programnya.
#include <iostream.h>
#include <conio.h>
main()
{
clrscr();
for(int c=1;c<=5;c++)
{
for(int d=1;d<=5;d++)
{
cout<<" "<<d;
}
cout<<endl;
}
getch();
}
Berikut hasil outputnya.
0 komentar:
Post a Comment