Input
To get input from the user use cin. We need to have declared the variable we want to save the input to first. Then we can use:
cin >> variablename;To get input from the user use cin. We need to have declared the variable we want to save the input to first. Then we can use:
cin >> variablename;