How to read input from user into a double-type variable
Posted: Thu Feb 24, 2011 9:23 pm
Hey,
I am trying to read input from the user and put it inside a double-type variable?
I developed a function who does the sqrt function to a number, the problem is that I can't read any double-type input from the user, only int-type.
Does anybody knows how to write such a function that will enable me to read input from the user and put it inside a double-type variable?
Thanks in advance,
I am trying to read input from the user and put it inside a double-type variable?
I developed a function who does the sqrt function to a number, the problem is that I can't read any double-type input from the user, only int-type.
Does anybody knows how to write such a function that will enable me to read input from the user and put it inside a double-type variable?
Thanks in advance,