Senin, 27 Mei 2013

Modul 6.4


http://www.youtube.com/watch?v=b1qRXuQFu6s&feature=youtu.be


Coding 6.4
Source Code: 6.4
// Modul 6.4.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <stdlib.h>

using namespace std;


int _tmain(int argc, _TCHAR* argv[])
{
       for (int j =1; j<=10; j++){;
              for (int k =1; k<=j; k++){;
                     cout<< k*j<< " ";
              }
              cout << "\n";
       }

       system("pause");
       return 0;
}

Deskripsi singkat:
Script ini digunakan untuk melooping. Untuk source code nya :
for (int j =1; j<=10; j++){;
              for (int k =1; k<=j; k++){;
                     cout<< k*j<< " ";
              }
              cout << "\n";
       }
           

Tidak ada komentar:

Posting Komentar