how do i make this lineCode:#include<iostream> using namespace std; void reverseInput(); void main(){ reverseInput(); } void reverseInput(){ cout<<"Enter 0 to end."; cout<<"Enter a number: "; int num; cin>> num; int first; if(num !=0){ first = num; reverseInput();//will keep calling until it reaches 0. cout<<"The numbers in reverse order are "; cout<<" "<<first<<", "<<endl;//now it prints from the end. } }
"The numbers in reverse order are ";
to display only once when i end the input by entering 0.
right now
when i end the input by entering 0, that line will print when each number is printed.