0
How can i use decimals in c# in user input
Please help
4 Respuestas
0
New to C# here.
Decimal : 128 bits, Contains 28-29 digits
Try this one:
decimal k = decimal.Parse(Console.ReadLine());
Console.WriteLine(k);
//To check enter long numbers
It works on Visual Studio. Not sure it will work on sololearn compiler.
+ 2
float x = float.Parse(Console.ReadLine());
+ 1
Thanks alot guys
+ 1
Follox me in my Instagram (mariobrrg3?