Batercus
Sunday, June 26, 2011
C Programming - Program Untuk Membalik Kata atau Kalimat
#include <stdio.h>
int main()
{
void terbalik();
printf("Masukkan sembarang kalimat: ");
terbalik();
return 0;
}
void terbalik()
{
char ch;
ch = getchar();
if (ch != 10)
{
terbalik();
}
putchar(ch);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment