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