So I’m fine-tuning the Gemini and I’m giving the input like this:
create the recursive flow data of this recursion question:#include
using namespace std;
// Problem 1: Calculate the factorial of a number.
long long factorial(int n) {
if (n == 0) {
return 1;
} else {
return n * factorial(n - 1);
}
}
int main() {
int n = 5; // Default input
cout << "Factorial of " << n << " = " << factorial(n) << endl;
return 0;
}
After saving the data, when I refresh the AI Studio, I cannot see the code in the input. Why? Is there a specific format to follow to add a code block?