c++ starting syntaz
#include <iostream>
int main() {
// Code within the main function is executed when the program is run
// Declare variables
int num1, num2, sum;
// Prompt user for input
std::cout << "Enter first number: ";
std::cin >> num1;
std::cout << "Enter second number: ";
std::cin >> num2;
// Perform addition
sum = num1 + num2;
// Display the result
std::cout << "Sum: " << sum << std::endl;
// Return 0 to indicate successful execution
return 0;
}