So I've this very simple program:
int number;
number = Convert.ToInt32(Console.ReadLine());
I want to be able to store a password in this variable. But when I try to add more than 10 digit numbers the program throws an Exception "Value is either too large or too small for an int32".
How can I make it so I can fit like 30 digit numbers and more into this variable ?
int number;
number = Convert.ToInt32(Console.ReadLine());
I want to be able to store a password in this variable. But when I try to add more than 10 digit numbers the program throws an Exception "Value is either too large or too small for an int32".
How can I make it so I can fit like 30 digit numbers and more into this variable ?