The following algorithm takes a float64 value. You need to convert this number to int and print the result.
Type conversion and overflow
Simple conversion
Report a typo
Sample Input 1:
-53332.7535Sample Output 1:
-53332Write a program in Go
package main
import "fmt"
func main() {
var source float64
fmt.Scan(&source)
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.