+ 2
C# Calculator
Hello Coding friends! At the moment Iâm trying to code my first calculator. (Iâm a newbie) Itâs pretty fun. I know how to add The âadditionâ and âsubtractâ Code (they also work) but not how the divide and multiply code looks like. I hope someone can help me. Greetings
4 RĂ©ponses
0
Can you Share your code hear?
0
ofc ill send it tomorrow. im not at home right now đ
0
OK cool
0
Division :
public int Divide(int a,int b)
{
return a/b;
}
Multiplication :
public int Multiply(int a,int b)
{
return a*b;
}
Replace with corresponding data types in the parameter list of the method.