#include <iostream> void func(int num); int main(void) { func(5); return 0; } void func(int num) { if(num) func(num-1); std::cout << num; }
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment