P
P
PRAIT2018-12-29 21:31:23
go
PRAIT, 2018-12-29 21:31:23

How to make an example program that converts temperature from degrees Fahrenheit to degrees Celsius?

package main
import "fmt"
func main() {
 fmt.Print("Enter a number: ")
 var input float64
 fmt.Scanf("%f", &input)
 output := input * 2
 fmt.Println(output)
}

Given: (C = (F - 32) * 5/9)
Guys, help me solve the problem, preferably with an explanation. I will be very grateful and will mark as a solution! Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question