Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Last active December 24, 2015 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/6813105 to your computer and use it in GitHub Desktop.
Save Fhernd/6813105 to your computer and use it in GitHub Desktop.
Librería que contiene una calculadora para aritmética básica.
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