Friday, March 12, 2021

Hours To Minutes Solver in Go

 A simple program that I wrote using Go programming language to ask the user to give hour values and then the program will convert the given hour into minute equivalent.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

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.




Program Listing

minutes_hours.go

/* hours_minutes.go
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
   Date     : September 22, 2020  8:54 PM Tuesday
   Websites : www.jakerpomperada.com  / www.jakerpomperada.blogspot.com  
   Emails   : jakerpomperada@gmail.com and jakerpomperada@yahoo.com
   Location : Bacolod City, Negros Occidental Philippines. 
*/

package main
 
import "fmt"
      
func main(){
    var hours int  
    var minutes int
      
    fmt.Print("\n\n")
    fmt.Print("\tHours To Minutes Solver")
    fmt.Print("\n\n")
    fmt.Print("\tEnter Number of Hours : ")
    fmt.Scan(&hours)
      minutes = hours * 60
    fmt.Print("\n\n")
    fmt.Println("\tThe result is ",minutes, " Minutes.") 
    fmt.Print("\n\n")
    fmt.Print("\tEnd of Program")
    fmt.Print("\n")
}

No comments:

Post a Comment