+ 1
Multiplying two number without using multiply operator
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;
}
+ 1
fastest way without the operator
https://code.sololearn.com/cWQRc4qkQ2Eu/?ref=app