How do I write a scanf() statement that accepts only capital letters and spaces until a new line character is encountered?
When I execute the C programme to count the number of character lines and words it counts only the characters, not lines and words. How do I fix this?