Skip to content

Commit 2afb4e7

Browse files
committed
Update MaximoRecursivo.cpp
1 parent 3cc707a commit 2afb4e7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/cpp/MaximoRecursivo.cpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,18 @@ int main() {
2020

2121
std::vector<int> nums{1, 2, 3, 4, 32, 6, 7, 8, 9, 10};
2222

23-
std::cout << max_recursivo(nums, nums.size()) << std::endl;
23+
std::cout << "nums = {";
24+
for(auto& i : nums) {
25+
26+
std::cout << i;
27+
28+
if(&i != &nums.back()) {
29+
std::cout << ",";
30+
}
31+
}
32+
std::cout << "}" << std::endl;
33+
34+
std::cout << "Max = " << max_recursivo(nums, nums.size()) << std::endl;
2435

2536
return 0;
2637
}

0 commit comments

Comments
 (0)