diff --git a/cmd/gcd.go b/cmd/gcd.go index 31c7a44..76c3fe2 100644 --- a/cmd/gcd.go +++ b/cmd/gcd.go @@ -52,15 +52,13 @@ func gcd(cmd *cobra.Command, args []string) { } } + fmt.Print(&z) if extended { - fmt.Print(&z) for _, c := range coeffs { fmt.Printf(" %s", &c) } - fmt.Println() - } else { - fmt.Println(&z) } + fmt.Println() } // gcdCmd represents the gcd command