ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

“Proyectos” “Estructuras Discretas”


Enviado por   •  12 de Febrero de 2019  •  Tareas  •  1.400 Palabras (6 Páginas)  •  152 Visitas

Página 1 de 6

Universidad Privada Domingo Savio

Carrera: Redes y Telecomunicaciones

2do  Semestre                                                                          

 

“Proyectos”

“Estructuras Discretas”

Integrantes: Carlos Crespo Bravo

                    Mauricio Ignacio Mier

                    José Meneces Pacheco

                    Cristian Marca[pic 1]

Año: 2017

FACTORIAL DE UN NÚMERO

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace ConsoleApplication17

{

    class Program

    {

        static void Main(string[] args)

        {

           int  n = 0, i,acumulador=1;

            Console.WriteLine("Ingrese Numero");

            n =int.Parse(Console.ReadLine());

            acumulador = 1;

            for (i=2;i<=n; i++)

            {

                acumulador *= i;

            }    

            Console.WriteLine("Su fatorial es: "+acumulador);

        }

    }}[pic 2]

PRUEBAS

[pic 3][pic 4]

SUMA DE DOS MATRICES

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace ConsoleApplication17

{

    class Program

    {

        static void Main(string[] args)

        {

            Console.WriteLine("Ingrese Numero de Filas para la Matriz: ");

            int a = int.Parse(Console.ReadLine());

            Console.WriteLine("Ingrese Numero de Columnas para la Matriz: ");

            int b = int.Parse(Console.ReadLine());

            while (a <= 1 || b <= 1)  //El valor debe ser mayor a 1  

            {

                Console.Clear();

                Console.WriteLine("Dimesion de la Matriz de: ");

                a = int.Parse(Console.ReadLine());

                Console.WriteLine("Dimesion de la Matriz Por: ");

                b = int.Parse(Console.ReadLine());

            }

            int[,] matriz1 = new int[a, b];  //Creamos nuestras matriz 1, acorde al valor a y b

            int[,] matriz2 = new int[a, b]; //Creamos nuestras matriz 2, acorde al valor a y b

            Console.Clear();

            Console.WriteLine("Ingresando valores para la MATRIZ 1 de {0}x{1}", a, b);

...

Descargar como (para miembros actualizados) txt (4 Kb) pdf (535 Kb) docx (433 Kb)
Leer 5 páginas más »
Disponible sólo en Clubensayos.com