If the problem is that you want to have a newline at the end of your answer you can just put "\n" at the end of your string. If you want to do the same using fmt.Println, you can check fmt.Sprintf :)
Otherwise indeed your issue is not that clear to me. Le jeu. 4 mars 2021 à 17:31, Tareq Ibna <dr.tareq8...@gmail.com> a écrit : > package main > import "fmt" > > func main(){ > > //I want to solve this peoblen with fmt.Println() please help. > > > var a, b ,c float32 > > fmt.Println(" Enter 1st number:" ) > fmt.Scan( &a) > > fmt.Println(" Enter 2nd number:" ) > fmt.Scan( &b) > c= a/b > > fmt.Printf(" %.2f", c) > > > > > } > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/00dac027-05d2-4ef8-a123-cf438981d849n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/00dac027-05d2-4ef8-a123-cf438981d849n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAL4P9zx8ogWcSxgnngaKXQDMc48DjnPBL0%2Bgkz7pS09FmhiBqQ%40mail.gmail.com.