#include<stdio.h>
#include<conio.h>
main(){
// operatori inkrementiranja i dekrementiranja
int x=1;
printf("Operatori inkrementiranja i dekrementiranja\n");
printf("\n Operatori inkrementiranja\n\n");
printf("x=%d \n",x);
printf("++x=%d \n",++x);
printf("x=%d \n",x);
printf("x++=%d \n",x++);
printf("x=%d \n",x);
printf("\n Operatori dekrementiranja\n\n");
printf("x=%d \n",x);
printf("--x=%d \n",--x);
printf("x=%d \n",x);
printf("x--=%d \n",x--);
printf("x=%d \n",x);
getch();
}
#include<conio.h>
main(){
// operatori inkrementiranja i dekrementiranja
int x=1;
printf("Operatori inkrementiranja i dekrementiranja\n");
printf("\n Operatori inkrementiranja\n\n");
printf("x=%d \n",x);
printf("++x=%d \n",++x);
printf("x=%d \n",x);
printf("x++=%d \n",x++);
printf("x=%d \n",x);
printf("\n Operatori dekrementiranja\n\n");
printf("x=%d \n",x);
printf("--x=%d \n",--x);
printf("x=%d \n",x);
printf("x--=%d \n",x--);
printf("x=%d \n",x);
getch();
}
No comments:
Post a Comment