Rabu, 05 Desember 2007

script

/*
Name: Windu Purnomo
Copyright:
Author:
Date: 10/03/04 03:59
Description: memecah string
*/

#include
#include
main ()
{
int pos=0;
char b, kata[50];
printf ("silahkan menulis string:\n");
gets(kata);
while (kata[pos]!='\0')
{
if (kata[pos]==' ')
printf ("\n");
else
printf ("%c",kata[pos]);
pos ++;
}
getch ();
return 0;
}

Tidak ada komentar: