Minggu, 13 Maret 2016

Contoh Tabel Perkalian Sederhana

Berikut contoh program tabel perkalian 1-3 :
#include <iostream>
#include <iomanip>


/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
int i,j;
cout<<"Tabel Perkalian\n\n";
for(i=1;i<=5;i++)
{   cout<<i<<endl;
for(j=1;j<=3;j++)
cout<<" "<<j;
cout<<endl;
}

}
Sekian.Selamat Mencoba

luvne.com ayeey.com cicicookies.com mbepp.com kumpulanrumusnya.com.com tipscantiknya.com

0 komentar:

Posting Komentar