home
Learn
screen_rotation
#include <stdio.h> #include <conio.h> void main(){ int m; int n; int p; int q; int res; clrscr(); printf("Enter value of m: "); scanf("%d",&m); printf("\n Enter value of n: "); scanf("%d",&n); printf("Enter value of p: "); scanf("%d",&p); printf("\n Enter value of q: "); scanf("%d",&q); res = (m < n) && (p > q); printf("\n value of res = %d",res); getch(); }
Program Output
Enter value of m: 10 Enter value of n: 20 Enter value of p: 30 Enter value of q: 40 value of res = 0