programa que crea una matriz n x 1

Upload: pedro-sotelo

Post on 17-Feb-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/23/2019 programa que crea una matriz N x 1

    1/1

    static void Main(string[] args) { //Matriz de x por y Console.Write("Introduzca el taa!o del arreglo") Console.Write#ine() int nuero $ int.%arse(Console.&ead#ine())

    Console.Write#ine() int x $ ' int y $ nuero int[] $ ne int[x y]

    Console.Write("M*+&I, -&II*#")

    Console.Write#ine() 0or (int i $ 1 i 2 x i33) { 0or (int 4 $ 1 4 2 y 433) { [i 4] $ (43')

    5 5

    //Muestro atriz 0or (int i $ 1 i 2 x i33) { 0or (int 4 $ 1 4 2 y 433) { Console.Write("6"3[i 4] 3 "6 ") //7scri8e en una sola linea 5 Console.Write#ine() //enera el salto de linea 5

    Console.Write("M*+&I, 9:M*;- '1 * #-9 %*&79") Console.Write#ine() 0or (int i $ 1 i 2 x i33) { 0or (int 4 $ 1 4 2 y 433) { i0 ((4 < =) $$ ') [i 4] $ (4 3 '') else [i 4] $ (4 3 ') 5 5

    0or (int i $ 1 i 2 x i33) { 0or (int 4 $ 1 4 2 y 433) {

    Console.Write("6" 3 [i 4] 3 "6 ")

    5 Console.Write#ine() //enera el salto de linea 5 Console.&ead#ine() 5

    55