Home > Back-end >  Novice rescue, topic is "take multiple consecutive Spaces with one space", so I write won&
Novice rescue, topic is "take multiple consecutive Spaces with one space", so I write won&

Time:10-10

#include
# define BANK 1
# define NONBANK 0
Int main ()
{
Int c, state=NONBANK;
While ((c=getchar ())!=(EOF)
{
If (c!=' ')
{
Putchar (c);
State=NONBANK;
}
Else if (state=NONBANK)
{
Putchar (c);
State=BANK;
}

}
return 0;

}

CodePudding user response:

In addition to state==NONBANK less an equal sign, if do not have what problem

CodePudding user response:

reference 1st floor tjw316248269 response:
in addition to state==NONBANK less an equal sign, if do not have what problem

Wow, it seems, no wonder play not to come out space
  • Related