#include <iostream> using std::cout; using std::cin; using std::endl; int main() { int a = 5; int b = 10; cout << "a = " << a << ", b = " << b << endl; a = a + b; b = a - b; a = a - b; cout << "a = " << a << ", b = " << b << endl; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter