I am a beginner in terms of programming using Go programming language I wrote this program to ask the user to give a the radius of the circle and then it will computes it's area. The code is for beginners in Go programming.
I am currently accepting programming work kindly contact me in the following email address for further details. Thank you.
My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental is (034) 4335675.
Sample Program Output
Program Listing
area.go
// Area of the Circle Solver in Go
// Written By Mr. Jake R. Pomperada
// December 1, 2017
package main
import (
"fmt"
)
func main(){
var rad float64
const PI float64 = 3.1415 // Constant Declaration
var area float64
fmt.Print("\n\n")
fmt.Print("Area of The Circle Solver")
fmt.Print("\n\n")
fmt.Print("Enter Radius of The Circle : ")
fmt.Scanln(&rad)
area = PI * rad * rad
fmt.Print("\n\n")
fmt.Printf("The area of the circe is %.2f" ,area)
fmt.Print("\n\n")
fmt.Print("End of Program")
fmt.Print("\n\n")
}
No comments:
Post a Comment