#include<stdio.h>
#include<conio.h>
main(){
// Dvojni operatori
int x=1;
printf("Dvojni operatori \n");
printf("\n Sabiranja \n\n");
printf("x=x+1=%d \n",x=x+1);
printf("x+=1=%d \n",x+=1);
printf("\n Oduzimanja \n\n");
printf("x=x-1=%d \n",x=x-1);
printf("x-=1=%d \n",x-=1);
printf("\n Množenja \n\n");
printf("x=x*1=%d \n",x=x*1);
printf("x*=1=%d \n",x*=1);
printf("\n Deljenja \n\n");
printf("x=x/1=%f \n",(float)(x/1));
getch();
}
#include<conio.h>
main(){
// Dvojni operatori
int x=1;
printf("Dvojni operatori \n");
printf("\n Sabiranja \n\n");
printf("x=x+1=%d \n",x=x+1);
printf("x+=1=%d \n",x+=1);
printf("\n Oduzimanja \n\n");
printf("x=x-1=%d \n",x=x-1);
printf("x-=1=%d \n",x-=1);
printf("\n Množenja \n\n");
printf("x=x*1=%d \n",x=x*1);
printf("x*=1=%d \n",x*=1);
printf("\n Deljenja \n\n");
printf("x=x/1=%f \n",(float)(x/1));
getch();
}
No comments:
Post a Comment