Skip to content

Instantly share code, notes, and snippets.

@SajjadArifGul
Created February 27, 2016 08:00
Show Gist options
  • Save SajjadArifGul/d78f16c462d64a6f5204 to your computer and use it in GitHub Desktop.
Save SajjadArifGul/d78f16c462d64a6f5204 to your computer and use it in GitHub Desktop.
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