static void Main(string[] args)
{
operacionesBasicas o = new operacionesBasicas();
Entrada_Salida e = new Entrada_Salida();
Menu m = new Menu();
int op;
double a, b;
do
{
m.genera_menu(out op, 20, 2, "1. Suma", "2. Resta", "3. Multiplicacion", "4. Division", "5. Salir");
Console.Clear();
switch (op)
{
case 1] menu)
{
int x;
for (x = 0; x < menu.Length; x++)
{
Console.SetCursorPosition(z, y + x);
Console.WriteLine(menu
}
opc = int.Parse(Console.ReadLine());
}
}
}
*****************************************
class operacionesBasicas
{
public double suma(double a, double b)
{
double c;
c = a + b;
return c;
}
public double resta(double a, double b)
{
double c;
c = a - b;
return c;
}
public double mult(double a, double b)
{
double c;
c = a * b;
return c;
}
public double div(double a, double b)
{
double c;
c = a / b;
return c;
}
}
}
**************************************************
class Entrada_Salida
{
public void captura(out double variable, string msj, int x, int y)
{
Console.SetCursorPosition(x, y);
Console.Write(msj);
variable = double.Parse(Console.ReadLine());
}
public void imprime(double resultado, string msj, int x, int y)
{
Console.SetCursorPosition(x, y);
Console.WriteLine("{0} {1}", msj, resultado);
}
}
}
BYEEEEEE