+ 1

Multiplying two number without using multiply operator

10th Jul 2018, 3:11 PM
puneet
2 ответов
+ 1
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; int res = 0; for(int i = 0;i < b; i++) res += a; cout << res; return 0; }
10th Jul 2018, 3:25 PM
Mert Yazıcı
Mert Yazıcı - avatar
+ 1
fastest way without the operator https://code.sololearn.com/cWQRc4qkQ2Eu/?ref=app
10th Jul 2018, 7:46 PM
hinanawi
hinanawi - avatar