Binary coded decimal. Each decimal digit is represented by its binary equivalent.
Chat with our AI personalities
void math(int*, int*, int*, int*) void main() { int a, b, c, d; puts("ENTER VALUES TO A & B"); math(&a,&b,&c,&d); printf("sum= %d \n diff= %d", c,d); getch(); } void math( int*a, int*b, int*c, int*d) { *c= *a+*b; *d= *a-*b; }
Two intervals (a, b) and (c, d) are said to be equal if b - a = d - c.
Two ratios a:b and c:d are equivalent when a*d = b*c. (Usually you can say when a/b=c/d except when b or d is 0.)
The answer is 4! (4 factorial), the same as 4x3x2x1, which equals 24 combinations. The answer is 24 and this is how: A b c d A b d c A c d b A c b d A d c b A d b c B c d a B c a d B d a c B d c a B a c d B a d c C d a b C d b a C a b d C a d b C b d a C b a d D a b c D a c b D b c a D b a c D c a b D c b a
#include<stdio.h> int main() { int a,b,c,d; for(a=1; a<5; a++) { for(b=1; b<5; b++) { for(c=1; c<5; c++) { for(d=1; d<5; d++) { if(!(a==b a==c a==d b==c b==d c==d)) printf("dd\n",a,b,c,d); } } } } return 0; }