-
Junior Member
Regarding Inputs
hi every body
please hlep me how to give int/float values through keyboard
-
Expert Member
Re: Regarding Inputs
you have to get a string input using:
System.Console.ReadLine()
and then convert it into int/float using:
Int32.Parse(string)
-
Junior Member
Re: Regarding Inputs
System.Console.ReadLine() used for reading the inputs. Default all the inputs are treated as string. I you want u can convert the input like float.Parsefloat() and format the input.
Regards,
Dharma
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules