Tabel Perkalian

# include <iostream.h>
# include <conio.h>

main()
{

int i,j,BA,BK,I;

clrscr();
cout <<"\n*******************";
cout <<"\n* TABEL PERKALIAN *";
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();
}

Posted in . Bookmark the permalink. RSS feed for this post.

Leave a Reply

Search

Support by Blogger ITN | Converted by LiteThemes.com