Program C++

Penggunaan Array :

#include <iostream>
#include <conio.h>
using namespace std;

main(){
int x,y;
char ddp[12]="INFORMATIKA";
for(x=0;x<11;x++){
cout<<x<<endl;
}
for(y=0;y<11;y++){
cout<<ddp[y];
}
cout<<endl;


getch();
}

output :

Share this

Related Posts

Previous
Next Post »