C++ Program : Read 3 numbers from stdin and print their sum to stdout ?

 

 In C++, you can read a single white space-separated token of input using "cin", and print output to stdout using "cout".

 

 

#include <iostream>

using namespace std;

int a,b,c;

int main() {
    cin >> a >> b >>c;
    
    cout << a+b+c;   
    
}