Tabel Perkalian
# include <iostream.h>
# include <conio.h>
main()
{
int i,j,BA,BK,I;
clrscr();
cout <<"\n*******************";
cout <<"\n* TABEL PERKALIAN *";
cout <<"\n* TheGunk *";
cout <<"\n*******************";
cout <<"\n\n\n";
cout <<"Masukkan Bilangan Awal! = "; cin>>BA;
cout <<"Masukkan Bilangan Akhir! = "; cin>>BK;
cout <<"Masukkan Interval! = "; cin>>I;
cout <<"\n";
for(i=BA;i<=BK;i=i+I)
{
for(j=BA;j<=BK;j=j+I)
{
cout <<i*j <<"\t";
}
cout <<"\n";
}
getch();
}
EmoticonEmoticon