Blogger news

Rabu, 09 November 2011

Tingkat 3

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

int i,j,k ;
void main ( )
{
i=0;
for (i=1;i<=2;i++)
{
for (j=1;j<=2;j++)
{
 for (k=1;k<=2;k++)
 {
 cout<<"Hasil i, j "   <<i<<"    "<<j<<"    "<<k<<endl;
 }
}
 }
}


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

int i,j,k;
void main ( )
{
i=0;
while (i<2)
{
i=i+1;
j=0;
while (j<2)
{
j=j+1;
k=0;
while (k<2)
{
k=k+1;
cout<<"Hasil i, j, k "<<i<<"    "<<j<<"    "<<k<<endl;
}
 }
 }
}

Tidak ada komentar:

Posting Komentar

 

cctv