Problem 33

2 comments on “Problem 33”


  • Akash

    python code :
    string = input()
    s = str()
    for i in string.split():
    s+=i+’ ‘
    print(s)


  • SYEDAPSANA A

    int main ()
    {
    char sent[100];
    gets(sent) ;
    char *p;
    p = strtok(sent, ” “) ;
    while(p! = NULL)
    {
    printf(“%s “,p) ; //leave a space after %s
    p = strtok(NULL, ” “) ;
    }
    return 0;