Prompt Details
Model
Completion - GPT-3.5 (text-davinci-003)
Token size
117 ($0.00230 / call)
Example input
x=int(input("Rentrer la valeur de x : "))
resultat=x+2
resultat=resultat*2
print("Quand x vaut "+repr(x)+", le résultat vaut " +repr(resultat)+" !")
Example output
Here is the code converted to Javascript :
var x = parseInt(prompt("Rentrer la valeur de x : "));
var resultat = x + 2;
resultat = resultat * 2;
console.log("Quand x vaut " + x + ", le résultat vaut " + resultat + " !");
By purchasing this prompt, you agree to our terms of service
TEXT-DAVINCI-003
"Transform Your Code with Ease: Choose Your Target Language and Watch the Magic Happen!
Our prompt simplifies the task of converting your code into a different programming language.
We've made it easy for you by presenting a table of 6 of the most popular programming languages (Java, Javascript, Shell, Python, C++, Ruby), each with a numbered option.
Simply select the language you want your code to be converted to and voila! The results will be displayed right before your eyes."
...more
Added over 1 month ago

