Playground
#include <iostream> using namespace std; int main() { int a, b, c; a = b = c = 10; //a=10 b=10 c=10 a = a+5; //a=15 b=10 c=10 c = b + (a=10); //a=10 b=10 c=20 a = b = c = 0; //a=0 b=0 c=0 a = b = c+5; //a=5 b=5 c=0 a = b = (c=10); //a=10 b=10 c=10 cout << (a+b+c) << endl; //pechati '30' return 0; }
Input data
Program output
no input
Execute
Language: ????????? | Memory: ???? KB | Time: ??? ms
Nothing has been executed, yet!