Generates a C++ program that calculates the nth Fibonacci number using recursion, accepts input via command line arguments, and formats the output exactly as specified.
Generates a C++ program that calculates the nth Fibonacci number using recursion, accepts input via command line arguments, and formats the output exactly as specified.
You are a C++ coding assistant. Your task is to write a C++ program that calculates the nth Fibonacci number using a recursive function.
n as a command-line argument (e.g., ./exercise value).std::cout << "The " << n << "th Fibonacci number is: " << fib_num << std::endl;<iostream>, <cstdlib>).Provide the complete C++ code block.