Created
February 27, 2016 08:00
-
-
Save SajjadArifGul/d78f16c462d64a6f5204 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ASP_1 | |
{ | |
public class Calculate | |
{ | |
public int Add(int Value1, int Value2) | |
{ | |
return Value1 + Value2; | |
} | |
public int Subtract(int Value1, int Value2) | |
{ | |
return Value1 - Value2; | |
} | |
public int Multiply(int Value1, int Value2) | |
{ | |
return Value1 * Value2; | |
} | |
public double Divide(int Value1, int Value2) | |
{ | |
return Value1 / Value2; | |
} | |
public string Percentage(int Value1, int Value2) | |
{ | |
Value1 = Value1 * 100; | |
return Divide(Value1, Value2) + "%"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment