Machine Problem
Write a program that will ask the user to give a temperature in Celsius and then the program will convert it into Fahrenheit equivalent.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.
Please subscribe to my channel https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg
=================================================
You can buy my C++ book online at
https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/
You can buy my book in introduction to computer networking at
https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
Program Listing// temp.gopackage mainimport "fmt"func main(){var celsius, fahrenheit float64fmt.Print("\n")fmt.Print("\tCelsius To Fahrenheit Converter")fmt.Print("\n\n")fmt.Print("\tEnter temperature in Celsius : ")fmt.Scanln(&celsius)fmt.Print("\n")/* celsius to fahrenheit conversion formula */fahrenheit = (celsius * 9/5) +32fmt.Printf("\t%0.2f",celsius)fmt.Print(" Celsius is equal to ")fmt.Printf("%0.2f",fahrenheit)fmt.Print(" Fahrenheit.")fmt.Print("\n\n")fmt.Print("\tEnd of Program")fmt.Print("\n")}
No comments:
Post a Comment