#include <stdio.h>
#include <ctype.h>
int main(int argc, char* argv[])
{
char str[256] = "c++ is programming language\0";
printf("%s\n",str);
for (int i = 0; str[i] != '\0'; i++)
if (isspace(str[i]) && isspace(str[i+1]))
while(isspace(str[i+1]))
{
for (int j = i; str[j] != '\0'; j++)
str[j] = str[j+1];
}
printf("%s\n",str);
}