0
How can I convert data
How do I convert String to int
5 Réponses
+ 1
you need to parse them
+ 1
When you input data it is string, to convert it to int
Console.WriteLine("Another number");
int y = Convert.ToInt32(Console.ReadLine());
You can now use your "y" as a number.
0
how do I parse?
0
for string to integer I don't really see the usecase can you tell me why you would wanna do that ?
0
For a code I am making I need a readline, but it tells me that it can't implicitly convert String to int