You are on page 1of 1

#include<iostream>

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

using namespace std;

main()

char teks[99];
cout<<"Masukkan sembarang teks \t: ";
gets(teks);
strupr(teks);

int x = strlen((teks));
for(int i=x-1;i>=0;i--){
cout<<(teks)[i];
}

strlwr(teks);

You might also like