anamari
❔ How can I save a byte in a ushort?
This is what I got but I'm not really sure if what I´m doing makes sense (sry if its in spanish):
byte x, y;
Console.WriteLine("Enter a two-digit value:");
x = Convert.ToByte(Console.ReadLine());
Console.WriteLine("Enter another two-digit value");
y = Convert.ToByte(Console.ReadLine());
Console.WriteLine("\n");
Console.WriteLine("La multiplicación de los valores es " + x * y);
Console.WriteLine("\n");
44 replies