Usando ciclo While en C#



using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace While

{

    class Program

    {

        static void Main(string[] args)

        {

            Int32 num;

            Int32 x=1;

            Console.WriteLine("Inserte un numero: ");

            num=Int32.Parse(Console.ReadLine());

            while (x < 11)

            {

            Console.WriteLine(num+"X"+x+"=" +num*x);

            x++;

            }

            Console.ReadLine();

        }

    }

}

Comentarios

Entradas populares