Problem: Input and Output
Link to the Challenge:
Problem StatementSource Code
#include <iostream>
using namespace std;
int a, b, c;
int sum;
void additionOperator() {
cin >> a >> b >> c;
sum = a + b + c;
}
int main() {
additionOperator();
cout << sum << endl;
return 0;
}
Demonstration
1 2 7
10