Advertisement
Spocoman

02. Radians to Degrees

Sep 15th, 2024
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.19 KB | None | 0 0
  1. package main
  2. import "fmt"
  3. import "math"
  4.  
  5. func main() {
  6.     var radians float64
  7.     fmt.Scanln(&radians)
  8.  
  9.     var degrees = radians * 180 / math.Pi
  10.    
  11.     fmt.Println(degrees)
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement