Write a C++ program that takes in text from the user and prints the total Number of spaces used in the text.
Kindly, use #include<iostream> and #include<conio.h> only.
while loop is more preferable than for or do-while.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.