Online C++ 17 Compiler
										
										
#include <iostream>

using namespace std;

int main() {
    int x=20;
    int y=40;
    int z=x+y;

    cout<<"Sum of x+y = " << z;
}
                                
                                

Output Results

										
Sum of x+y = 60