Advertisement
Fhernd

Utilidades.cs

Nov 12th, 2017
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Utilidades
  4. {
  5.     public class Aritmetica
  6.     {
  7.         public double Adicion(double a, double b)
  8.         {
  9.             return a + b;
  10.         }
  11.    
  12.         public double Sustraccion(double a, double b)
  13.         {
  14.             return a - b;
  15.         }
  16.        
  17.         public double Producto(double a, double b)
  18.         {
  19.             return a * b;
  20.         }
  21.        
  22.         public double Cociente(double a, double b)
  23.         {
  24.             return a / b;
  25.         }
  26.        
  27.         public double Exponenciacion(double a, double b)
  28.         {
  29.             return Math.Pow(a,b);
  30.         }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement