Last active
December 24, 2015 14:29
-
-
Save Fhernd/6813105 to your computer and use it in GitHub Desktop.
Librería que contiene una calculadora para aritmética básica.
This file contains 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
using System; | |
namespace Utilidades | |
{ | |
public class Aritmetica | |
{ | |
public double Adicion(double a, double b) | |
{ | |
return a + b; | |
} | |
public double Sustraccion(double a, double b) | |
{ | |
return a - b; | |
} | |
public double Producto(double a, double b) | |
{ | |
return a * b; | |
} | |
public double Cociente(double a, double b) | |
{ | |
return a / b; | |
} | |
public double Exponenciacion(double a, double b) | |
{ | |
return Math.Pow(a,b); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment