Simple conversion

Report a typo

The following algorithm takes a float64 value. You need to convert this number to int and print the result.

Sample Input 1:

-53332.7535

Sample Output 1:

-53332
Write a program in Go
package main

import "fmt"

func main() {
var source float64
fmt.Scan(&source)
}
___

Create a free account to access the full topic