#include
#include
void main()
{
char kata[100],kata2[100];
int i,jum_kata1=0,jum=0,jum_kata2=0;
printf("Masukkan kalimat : ");
gets(kata);
for(i=0;kata[i]!=' ';i++)
{
jum_kata1++;
}
for(i=0;kata[i]!='\0';i++)
{
jum_kata2++;
}
for(i=0;ijum_kata1+1;i--)
{
printf("%c",kata2[i-1]);
}
printf("\n");
}
Home »Unlabelled » Membalik tiap string
Membalik tiap string
Posted by
Adhit
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment