Not able to see code block while fine tuning

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?

Welcome to the forum. Yes, there is a specific convention to follow, called fencing. You add three backtick characters one line before your code starts, and three backtick characters right after it ends.

This will make it appear like this

There is code here

To find out more about fencing, look up the markdown specification.

Hope that helps.