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
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
The __________ attribute is used to announce variables based on definitions of columns in a table?
Can a program have two main functions?
What is #pragma statements?
What is the difference between ‘g’ and “g” in C?
What is meant by inheritance?
What are the types of macro formats?
What is a stream?
What does the characters “r” and “w” mean when writing programs that will make use of files?
Explain a file operation in C with an example.
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
What is the maximum length of an identifier?
why programs in c are running with out #include
#include