Perulangan C++

Source code C++ :

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

using namespace std;
main(){
int i,j;
char tek[12]="INFORMATIKA";
for(i=0;i<11;i++){
cout<<i<<endl;
{ for(j=0;j<=11;j++)
cout<<" "<<tek[j];
cout<<endl;
}
}
getch();
}

Output :



Share this

Related Posts

Previous
Next Post »