Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "math"
- )
- func main() {
- var number int
- fmt.Scanln(&number)
- for i := 0; i <= number; i += 2 {
- fmt.Println(math.Pow(2, float64(i)))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement