Program bahasa C Try OPerator 2
#include<stdio.h>
int main()
{
int m =0;
int n =0;
int x;
m=1000;
n=100000;
x=m^n;
printf ("Nilai x =%d\n ",x);
x=!(m>n);
printf("Nilai x=%d\n", x );
x=n>>10;
printf ("Nilai x =%d\n ",x);
x=(n<10) && (2*m<n);
printf ("Nilai x =%d\n ",x);
m=(n<10) && (2*(m<n));
printf ("Nilai m =%d\n ",m);
getch();
return 0;
}
Posting Komentar