Note : Just for Knowledge and avoid using it.
1 2 3 4 5 6 7 8 9 10 11 12 |
#include < stdio.h > #include < conio.h > void main() { int i, number, output; printf("Enter the number with which you want to multiply 9"); scanf("%d", & number); output = (number << 3) + number; //since every left shift // multiplies the number by 2 printf("%d", output); getch(); } |