Friday, February 1, 2019

Convert integer to float

  • Problem Description

    Given an input as integer to the machine , he need to get the output of corresponding floating point number

    Hint: Divide the number by 100 and display the output

    Please help him to write the program that satisfy the output.
  • CODING ARENA
  • a=int(input())

    b=a/100
    print(b)
  • Test Case 1

    Input (stdin)
    12
    
    
    Expected Output
    0.12
  • Test Case 2

    Input (stdin)
    15
    
    
    Expected Output
    0.15

No comments:

Post a Comment