I have 2 integers x and y, now I want to read them from the user and the syntax kick me down, I guess u can only read string from the user according to C# syntax rule, I have tried many combinations but none of them are working, so now I want to know how to static cast string to integer coz I have declared those integers as strings and I have to make some calculations which I cant with strings
Lastly I came up with something like string x, y so I wana type cast them to integers so that I can be able to make those calculation..... any help would be highly appreciated.
Note: Im a novice to C#, and am trying to learn it on my own.... And please dont refer me to some other threads or sites, only one line of code would be sufficient