home
Learn
screen_rotation
#include <stdio.h> #include <conio.h> void main(){ int m; int n; int p; clrscr(); printf("Enter value of m: "); scanf("%d",&m); printf("\n Enter value of n: "); scanf("%d",&n); p = m < n; /* in program output we can see 1 for true and 0 for false */ printf("\n value of m = %d",m); printf("\n value of n = %d",n); printf("\n value of p = %d",p); getch(); }
Program Output
Enter value of m: 10 Enter value of n: 20 value of m = 10 value of n = 20 value of p = 1