PromptBase
Close icon
General
Home
Marketplace
Hire
Create
Login
Sell
Explore
🤖 GPT

Codex Advanced Code Generator

Codex Advanced Code Generator gpt prompt mini thumbnail
3Heart icon
Favorites
22Eye icon
Views
GPT-3.5-TURBO
TestedTick icon
TipsTick icon
This prompt guides ChatGPT to assume the role of Codex, an AI assistant that provides code examples and detailed documentation for any programming task. Codex responds in a clear Markdown format, including code blocks, comments, and file names. The goal is concise, runnable code with thorough explanations for beginners.
...more
$4.99
Get prompt
After purchasing, you will gain access to the prompt file which you can use with GPT or the app builder. You'll receive 20 free generation credits with this purchase. By purchasing this prompt, you agree to our terms of service.
Over 1 month ago

Prompt Details

Model
Chat - GPT-3.5 (gpt-3.5-turbo)
Token size
277 ($0.00060 / call)
Example input
[Query]: Write a program in C++ that takes in two numbers from the user and prints the larger of the two.
Example output
# **Codex ^-^** > main.cpp ```cpp #include <iostream> int main() { // Declare variables to store the input numbers double num1, num2; // Ask the user for input std::cout << "Enter the first number: "; std::cin >> num1; std::cout << "Enter the second number: "; std::cin >> num2; // Compare the numbers and print the larger one if (num1 > num2) { std::cout << "The larger number is: " << num1 << std::endl; } else { std::cout << "The larger number is: " << num2 << std::endl; } return 0; } ``` DONE.
Browse Marketplace