Mumbai INDIA
Offline
Newbie
Karma: 0
Posts: 37


« Reply #23 on: January 06, 2013, 02:05:39 pm » 
pl let me know how to make it work?
#include<stdio.h> #include<conio.h> void main() { int a,b,c,d; printf("Enter the Val of A,B,C,D"); scanf ("%d,%d,%d,%d",&a,&b,&c,&d); printf("Val of a,b,c,d",%d,%d,%d,%d); getch(); }
???????? ???????? ????????
/* int { if(a=0&&b=0&&c=0&&d=0) printf("%a,%b,%c,%d",is "00%" EMPTY);//0000=00 } { if(a=0&&b=0&&c=0&&d=1) printf("%a,%b,%c,%d",is "10%" );//0001=01 } { if(a=0&&b=0&&c=1&&d=0) printf("%a,%b,%c,%d",is "20%" );//0010=02 } { if(a=0&&b=0&&c=1&&d=1) printf("%a,%b,%c,%d",is "25%" );//0011=03 } { if(a=0&&b=1&&c=0&&d=0) printf("%a,%b,%c,%d",is "30%" );//0100=04 } { if(a=0&&b=1&&c=0&&d=1) printf("%a,%b,%c,%d",is "40%" );//0101=05 } { if(a=0&&b=1&&c=1&&d=0) printf("%a,%b,%c,%d",is "50%" );//0110=06 } { if(a=0&&b=1&&c=1&&d=1) printf("%a,%b,%c,%d",is "60%" );//0111=07 } { if(a=1&&b=0&&c=0&&d=0) printf("%a,%b,%c,%d",is "70%" );//1000=08 } { if(a=1&&b=0&&c=0&&d=1) printf("%a,%b,%c,%d",is "75%" );//1001=09 } { if(a=1&&b=0&&c=1&&d=0) printf("%a,%b,%c,%d",is "80%" );//1010=10 } { if(a=1&&b=0&&c=1&&d=1) printf("%a,%b,%c,%d",is "90%" );//1011=11 } { if(a=1&&b=1&&c=0&&d=0) printf("%a,%b,%c,%d",is "100%" FULL);//1100=12 } { if(a=1&&b=1&&c=0&&d=1) printf("%a,%b,%c,%d",is "100" Alarm);//1101=13 } { if(a=1&&b=1&&c=1&&d=0) printf("%a,%b,%c,%d",is "xxx%" );//1110=14 } { if(a=1&&b=1&&c=1&&d=1) printf("%a,%b,%c,%d",is "xxx%" );//1111=15 } */
