#include <iostream>
int main() {
// Declare variables a and b
int a, b;
// Read values for a and b from the input
std::cin >> a >> b;
// Calculate the sum
int sum = a + b;
// Print the result
std::cout << sum << std::endl;
return 0;
}
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
int main() {
// Declare variables a and b
int a, b;
// Read values for a and b from the input
std::cin >> a >> b;
// Calculate the sum
int sum = a + b;
// Print the result
std::cout << sum << std::endl;
return 0;
}