Ing.asistida
Enviado por jesus miranda rosas • 6 de Febrero de 2018 • Tarea • 713 Palabras (3 Páginas) • 61 Visitas
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
int numColumnas;
int numeroRenglon;
int numero;
int cont=0;
numeroRenglon = int.Parse(Console.ReadLine());
Console.WriteLine("Escribe el numero de filas");
numColumnas = int.Parse(Console.ReadLine());
Console.WriteLine("Escribe el numero de columnas");
int[,] matriz = new int[numeroRenglon, numColumnas];
if (numeroRenglon * numColumnas > 10) ;
{
}
Console.WriteLine("Ingresar datos menores");
else
{
Console.WriteLine("Indicar los valores de la matriz");
}
for(int i=0; i <numeroRenglon; i++)
{
for (int j = 0; j < numColumnas; j++)
{
Console.Write("matriz[" + i + "," + j + "]=");
matriz[i, j] = int.Parse(Console.ReadLine());
}
if(i <1000)
{ Console.WriteLine("Escribe un valor menor");
}
}
for (int num=0; numeroRenglon <=3; numeroRenglon++)
{
for (int columna=0; columna <= 3; columna++)
{
Console.WriteLine(""+numero(numeroRenglon, numColumnas));
}
while (numero>1000)
if (numero= %2)
{
numero=numero/2;
}
else
{
numero *3+1;
}
Console.Writeline("Fueron:"+cont+"pasos");
Console.Readline();
}
...