#include <iostream> using namespace std; int main() { int a,b,s; cout<<"a="; cin>>a; cout<<"b="; cin>>b; s=a+b; cout<<"a+b="<<s; return 0; }
/tmp/MHJO6VFZiA.o a= What I have tried: Also, if i put a=1 or anything like that, after i run it it says:a=1
a=
C:\Users\rjmac\Documents\VSCode\C++>test a=23 b=44 a+b=67
23 17
$ g++ -Wall add.cpp $ ./a.out a=1 b=2 a+b=3$
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)