Documentos de Académico
Documentos de Profesional
Documentos de Cultura
LIBRERIA GENERAL
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Libreria
Console.ReadKey();
Console.Write(Mensaje);
int i, r = 0;
if (i % 2 == 0)
r += i;
}
return r;
int contador = 0;
int numero = 1;
if (numero % 2 == 0)
contador++;
numero++;
int c = 0;
int n = 1;
if(n % 7 == 0)
c++;
n++;
int c = 0, n = 1;
c++;
n++;
int c = 0;
int n = 1;
n++;
if (EsPrimo(n))
c++;
int c;
int cd = 0;
for (c = 1; c <= n; c++)
if (n % c == 0)
cd++;
return cd == 2;
Console.Write(mensaje);
return int.Parse(Console.ReadLine());
int i = 1, r = 0;
r += n1;
i++;
return r;
int c1 = 0, i;
return c1;
{
int c2 = 0, z;
return c2;
int mcd = 0;
else
mcd = num1;
return mcd;
int mcm = 0;
return mcm;
int inv;
inv = n % 10;
n /= 10;
while (n != 0)
n /= 10;
return inv;
int m, n, x, y, h, i;
m = invertir(a);
n = invertir(b);
x = m % 10;
y = n % 10;
h = (m /= 10) * 10 + y;
i = (n /= 10) * 10 + x;
MostrarMensaje("CAMBIO: " + "\nA = " + a + " RA = " + invertir(h) + " \nB = " + b);
EJERCICIO 1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ejercicio1
class Program
int sumapar = 0;
sumapar = L.SumarPares(sumapar);
L.MostrarMensaje(" La suma de los pares que estan entre 2 y 100 es un total de: "+ sumapar);
L.pausa();
EJERCICIO 2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ejercicio2
class Program
{
static Libreria Z = new Libreria();
int resultado = 0;
resultado = Z.MultiplicarNum(n1,n2);
Z.pausa();
EJERCICIO 3
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ejercicio_3
class Program
L.Divisiblespor2();
L.pausa();
}
EJERCICIO 4
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ejercicio4
class Program
Z.Divisiblespor7();
Z.pausa();
EJERCICIO 5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ejercicio5
{
class Program
L.Divisiblespor2y7();
L.pausa();
EJERCICIO 6
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ejercicio_6
class Program
L.Divisibleentresimismo();
L.pausa();
EJERCICIO 7
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ejercicio7
class Program
S.MostrarMensaje(" la repeticion del primer numero por el segundo numero es: ");
r1 = S.RepetirNum1(numero1, numero2);
S.MostrarMensaje(" la repeticion del segundo numero por el primer numero es: ");
r2 = S.RepetirNum2(numero1, numero2);
S.pausa();
EJERCICIO 8
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ejercicio_8
{
class Program
r1 = L.CalcularMCD(num1, num2);
r2=L.CalcularMCM(num1,num2,r1);
L.pausa();
EJERCICIO 9
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ejercicio_9
class Program
{
int n1, n2;
A.InvDig(n1, n2);
A.pausa();