Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int a, b, temp;
- printf("\n Nhap a, b: ");
- scanf("%d %d",&a,&b);
- temp = (a==b);
- printf("\n %d==%d co gia tri %d",a,b,temp);
- temp = (a!=b);
- printf("\n %d!=%d co gia tri %d",a,b,temp);
- temp = (a>b);
- printf("\n %d>%d co gia tri %d",a,b,temp);
- temp = (a>=b);
- printf("\n %d>=%d co gia tri %d",a,b,temp);
- temp = (a<b);
- printf("\n %d<%d co gia tri %d",a,b,temp);
- temp = (a<=b);
- printf("\n %d<=%d co gia tri %d",a,b,temp);
- temp = (a<0 && b<0);
- printf("\n %d<0 && %d<0 co gia tri %d",a,b,temp);
- temp = (a<0 || b<0);
- printf("\n %d<0 || %d<0 co gia tri %d",a,b,temp);
- temp = !(a<b);
- printf("\n !(%d<%d) co gia tri %d",a,b,temp);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement