Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
multiply_without_asterisk
//Title of this code //g++ 4.9.1 #include <iostream> using namespace std; class Multiply { private: int multiplicand,multiplier; public: Multiply(int tempM1,int tempM2){ multiplicand = tempM1; multiplier=tempM2; } int multiplyNumbers() { int sum=multiplicand; for(int i=1;i<multiplier;i++) sum+=multiplicand; return(sum); } }; int main() { Multiply testMult(5,7); cout<<testMult.multiplyNumbers()<<endl; return 0; }
run
|
edit
|
history
|
help
0
idfc
ONP
str_to_int
segmentedSieveD
Triplet sum in array
CodeForces Div 3 - D
Listas enlazadas - eliminar ocurrencias
NBiggestNum
Hello
cppPySlots3