#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
char balik[10]="123456789";
cout<<"Kata Awal : ";
for(int i=1;i<10;i++){
cout<<balik[i]<<" ";
}
cout<<endl;
cout<<"Dibalik : ";
for(int i=10;i>=0;i--){
cout<<balik[i];
}
return 0;
}
Comments
Post a Comment