Skip to content

Latest commit

 

History

History

08-conversion

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Exercises 8 - Conversion:

Goal

Output:Give me a number.
Input:5,6
Output:5,6
Output:5

Instructions

  • 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 type int.
  • What happens? (Hint: You will see an Invalid Format Exception