#include <stdio.h>
#include <stdlib.h>

int main()
{
    //++ and -- are the increment and decrement operators
    //adds or subtracts 1 from the variable
    int x = 20;
    printf("%d\n", x);
    x++;
    printf("%d\n", x);

    return 0;
}




#include <stdio.h>
#include <stdlib.h>

int main()
{
    int a = 5,  b = 10, answer = 0;
    answer = ++a * b; //added one to a AFTER the calculation
    printf("a:%d \t b:%d \t answer:%d \n", a, b, answer);

    //reset variables
    a = 5,  b = 10, answer = 0;
    answer = a++ * b; //added one to a BEFORE the calculation
    printf("a:%d \t b:%d \t answer:%d \n", a, b, answer);

    return 0;
}