Multiply a number with 10 without using multiplication operator | C ++ program to multiply a number with 10 using bitwise operators ; Function to find multiplication of n with 10 without using multiplication operator ; Driver program to run the case
#include <bits/stdc++.h> NEW_LINE using namespace std ; int multiplyTen ( int n ) { return ( n << 1 ) + ( n << 3 ) ; } int main ( ) { int n = 50 ; cout << multiplyTen ( n ) ; return 0 ; }