Logical operators

Run Settings
LanguageC
Language Version
Run Command
#include <stdio.h> int main(void){ int p , q, r, s; printf("Enter the frist Number :"); scanf("%d", &p); printf("Enter the second Number :"); scanf("%d", &q); printf("Enter the Third Number :"); scanf("%d", &r); printf("Enter the Last Number :"); scanf("%d", &s); if((q>r) && (s>p) && ((r+ s)>(p+q))&& (r > 0) && (s>0)&&(p%2==0)) { printf("\n correct values \n"); }else{ printf("Wrong Values"); } return 0 ; }
Editor Settings
Theme
Key bindings
Full width
Lines