Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

how to make the computer ask the user a number (language c++)

0 votes
asked Oct 19, 2018 by Ilaria (120 points)

1 Answer

0 votes
answered Oct 23, 2018 by Ryan (1,230 points)
You have to use cout and cin to ask for and receive information.
commented Oct 24, 2018 by anonymous
yes to clarify cout is for output and cin is for input * cout is used with <<, and cin with >>*
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.