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.