C#C
C#β€’3y ago
anamari

❔ How can I save a byte in a ushort?

I'm a game design and development student and I'm currently studying for my c# test (I'm new to coding). I was doing this exercise but there is a part where I have to save a byte in a ushort but I don't understand how I can save it?? The exercise is the following:

"Ask the user for two two-digit numbers (bytes), calculate their multiplication, which must be stored in an ushort, and display the result on the screen."

I appreciate the help ❀️ 😦
Was this page helpful?