C++ Online Compiler
Example: Simple Hotel Menu Display in C++
C
C++
C#
Java
Python
PHP
main.cpp
STDIN
Run
// Simple Hotel Menu Display #include <iostream> using namespace std; int main() { // Step 1: Display a welcome message cout << "Welcome to Our Hotel!" << endl; cout << "---------------------" << endl; // Step 2: Display the menu items with prices cout << "Our Menu:" << endl; cout << "1. Coffee - Rs. 50" << endl; cout << "2. Tea - Rs. 40" << endl; cout << "3. Sandwich - Rs. 120" << endl; cout << "4. Burger - Rs. 180" << endl; cout << "5. Pizza - Rs. 350" << endl; cout << "---------------------" << endl; return 0; }
Output
Clear
ADVERTISEMENTS