PromptBase
Upgrade
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

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.
GPT

Codex Advanced Code Generator

Add to Cart
PromptBase Select
Get this prompt + 9 more with SelectFrom $14/mo · Cancel anytimeFrom $14/mo · Cancel anytime
View Select
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this prompt, you agree to our terms of service
GPT-3.5-TURBO
Tested icon
Guide icon
Free credits 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
Added over 1 month ago
Report
Browse Marketplace