10)-cout-<<-"done-counting..."-<<-endl;-else-{-cout-<<-n-<<-endl;-count-(n-1);-}-}.png"/> 10) cout << "done counting..." << endl; else { cout << n << endl; count (n+1); } } Code Example" />


“void count(int n) { if (n<0) cout << "n must be positive.." << endl; else if (n>10) cout << "done counting..." << endl; else { cout << n << endl; count (n+1); } }” Code Answer


void count(int n) { if (n<0) cout << "n must be positive.." << endl; else if (n>10) cout << "done counting..." << endl; else { cout << n << endl; count (n+1); } }
whatever by Defiant Deer on Oct 15 2021 Comment
0
Add a Grepper Answer

Whatever answers related to “void count(int n) { if (n<0) cout << "n must be positive.." << endl; else if (n>10) cout << "done counting..." << endl; else { cout << n << endl; count (n+1); } }”


Whatever queries related to “void count(int n) { if (n<0) cout << "n must be positive.." << endl; else if (n>10) cout << "done counting..." << endl; else { cout << n << endl; count (n+1); } }”





More “Kinda” Related Whatever Answers View All Whatever Answers »




Browse Popular Code Answers by Language




Browse Other Code Languages




X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.