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.

Judging by your post it is likely that you have not read the Daniweb Posting Rules and Terms of Service. Please give these a read. You might also want to Read This Before Posting a Question to increase your chances of getting a timely (and more useful) response.

Be a part of the DaniWeb community

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