Give a fast way to multiply a number by 7
Answer Posted / pratik chopra
Yes this can be made generic;
Approach: 7*x=(8-1)*x= 8*x-1*x=x<<3-x
If 6*x=(4+2)x=4*x+2*x=x<<2+x<<1
If 13*x=(16-2-1)x=(x<<4-x<<1-x)
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Why is void main used?
which type of aspect you want from the student.
What is break statement?
What is a keyword?
Why main is not a keyword in c?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
What is signed and unsigned?
Do you know what are the properties of union in c?
Is there any possibility to create customized header file with c programming language?
Why doesnt long int work?
What are the advantages of c preprocessor?
What is difference between structure and union in c?
Is struct oop?
What is array in C
What is a MAC Address?