How can I make it continually loop? It only asks for it one time? Is it possible to stop it after 5 times? Do I need a control condition/while loop?
or
is it possible to have the user input 5 integers in the beginning and have the output show at the end?
Code:#include <iostream> using namespace std; int main() { int input = 0; cout << "Enter an integer: "; cin >> input; for(int num=0; num < input; num++) { cout<<"*"; } }




Reply With Quote