2024-08-25 20:00:46 -06:00

17 lines
366 B
C++

// Demonstrating how to use Complex Expressions
#include <iostream>
int main()
{
using namespace std;
int a=0, b=0, x=0, y=35;
cout << "a: " << a << " b: " << b;
cout << " x: " << x << " y: " << y << endl;
a = 9;
b = 7;
y = x = a+b;
cout << "a: " << a << " b: " << b;
cout << " x: " << x << " y: " << y << endl;
return 0;
}