#include<stdio.h>
#include<stdlib.h>
int i=8, j=5,k;
float x=0.005, y=-0.01, z;
int main (void) {
k=(3*i-2*j)%(2*j-4);
printf("hasildariperhitungandiatasadalah : %d\n",k);
printf("\n");
k=2*((i/5)+(4*(j-3))%(i+j-2));
printf("hasildariperhitungandiatasadalah : %d\n",k);
printf("\n");
k=(i-3*j)%(12+2*j)/(x-y);
printf("hasildariperhitungandiatasadalah : %d\n",k);
printf("\n");
k=-(i+j);
printf("hasildariperhitungandiatasadalah : %d\n",k);
printf("\n");
++i;
printf("hasildariperhitungandiatasadalah : %d\n",i);
printf("\n");
i++;
printf("hasildariperhitungandiatasadalah : %d\n",i);
printf("\n");
--j;
printf("hasildariperhitungandiatasadalah : %d\n",j);
printf("\n");
++x;
printf("hasildariperhitungandiatasadalah : %f\n",x);
printf("\n");
y--;
printf("hasildariperhitungandiatasadalah : %f\n",y);
printf("\n");
k=i<=j;
printf("hasilpernyataandiatasadalah (bila 0=false, bila
1=true) : %d\n",k);
printf("\n");
system
("pause");
return (0);
}
No comments:
Post a Comment