7 Replies
Console.WriteLine("Please enter a number between 2 and " + uint.MaxValue);
uint number = uint.Parse(Console.ReadLine());
what does uint mean here?
whats the difference between int and uint
unsigned int
an unsigned int is an int that cannot be below 0 and the max value is higher
Integral numeric types - C# reference - C#
Learn the range, storage size, and uses for each of the integral numeric types.
Servator
REPL Result: Success
Result: uint
Compile: 336.542ms | Execution: 65.708ms | React with ❌ to remove this embed.
Unsigned integer named number is a string we try to interpet as a unsigned integer (uint.Parse())
thank you!
thank
Closed!