how to read white space using scanf code example
Example: scanf with whitespace
//gets input including whitespace [50]-1 for null, until \n
scanf("%49[^\n]", userInput);
//gets input including whitespace [50]-1 for null, until \n
scanf("%49[^\n]", userInput);