Generation

generate functionThu, 20 Apr 2023

calculadora

# C++ #include <iostream> // Function to add two numbers int add(int a, int b) { return a + b; } // Main function int main() { int a, b; std::cout << "Enter two numbers to add: "; // Reads two integer numbers from user std::cin >> a >> b; // Print the sum std::cout << "Sum is: " << add(a, b); return 0; }

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