🐏Variables
Last updated
Was this helpful?
Was this helpful?
int x; // declaration
x = 10; // assignment
int y = 10; // declaration + initialisationint x = 10;
int y = 12;
int sum = x + y;
int difference = x - y;
int product = x * y;
double quotient = x / y; // note that we use the double here
int remainder = x % y;
int expression = ((x + y) * (x - y));