Selasa, 08 Januari 2013

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

void main()
{ //begin
   int S[2][2];

   for (int i=1;i<=2;i++)
   {
    for(int j=1;j<=2;j++)
    {
     cout <<"masukkan data S["<<i<<","<<j<<"]=";
     cin>> S[i][j];
     }
    }

    for (int i=1;i<=2; i++)
   {
   for (int j=1; j<=2; j++)
   {
    cout <<S[i][j];
    if(j==2)
   
     cout<<"\n";
   }
    }


puts("\n TUGAS LOGIKA & ALGORITMA KELAS 11.1B.27 PERTEMUAN 9 ");

puts(" --------------------------------------------------- ");

getch();
}

++http://tugas851.wordpress.com/