Write a program that gets input of total number of students in a class and then asks for the fee collected per student. It displays total fee collected from the class. Note: Problem forwarded to us by "Ali Aftab".
The problem is to input a 3 digits number from the user. And then break that number into digits and show each digit on separate line. This problem should be solved using C++ (C Plus Plus) programming language. Note: The problem was sent to me by my friend "Ali Aftab".
In previous lessons we have learn that the keyword cin is used to get input from the user. But I want to tell you something about cin keyword that is very important to know. The keyword cin separates the words or "group of characters differentiated by spaces". It only keeps the first group of characters (or first word) and ignores the rest of the characters coming after the space.