Use scanf to take input from user if required.
#include<stdio.h>
int main(void)
{
int x=8;
printf("x=%d\t",x);
printf("x=%d\t",++x);
printf("x=%d\t",x);
printf("x=%d\t",--x);
printf("x=%d\n",x);
return 0;
}
Output
x=8 x=9 x=9 x=8 x=8