Generation

translateSat, 06 May 2023

Eleve al cuadrado un número si es par y al cubo si es impar

int f(int x){ int result = 0; if (x%2 == 0) result = x * x; else result = x * x * x; return result; }

Want to kickstart your project?Use the new AI Studio to create your code