Output:Give me a number.
Input:5,6
Output:5,6
Output:5
- Create a Console Project named
P8Conversion
How To? - Ask the user for a Number and assign the result to a variable.
- Convert the variable to Type
float
. - Print the
float
to the Console. - Convert the double number to type
int
. - Print the
int
to the console. - Convert the original
string
to typeint
. - What happens? (Hint: You will see an Invalid Format Exception