Ejercicio 3

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

using System;

public class ProductoNumero


{
public static void Main(string[] args)
{
int x = Convert.ToInt32(Console.ReadLine());
int y = Convert.ToInt32(Console.ReadLine());

int result = 0;
int i = 0;

while (i < y)
{
result = result + x;
i++;
}

Console.WriteLine("{0}x{1}= {2}", x, y, result);


}
}

You might also like