Search found 1 match

by rasel_0605003
Fri Jan 18, 2008 7:02 pm
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 39180

wa 483

how i can get several line input??
here is my code
Please suggest me
#include<stdio.h>
#include<string.h>

int main(void)
{
int i, j , p;
char s[1000];
gets(s);

j = 0;
for(i=0; ; i++)
{
if( s == ' ' && j == 0 )
{
for( p=i-1; p >= j; p--)
{
printf("%c",s[p]);
}
j=i;
}
else if( s ...

Go to advanced search