Wednesday, April 3, 2019

Highest of the Three Numbers in Go

This sample program will ask the user to give three numbers and then the program will check which of the three numbers is the highest in terms of numerical value written in Go programming language.

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 in 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com



Sample Program Output


Program Listing

package main

import "fmt"

var n1,n2,n3 int32

func main(){
fmt.Print("\n");
fmt.Print("\tHighest of the Three Numbers");
fmt.Print("\n\n");
fmt.Print("\tGive Three Numbers : ");
fmt.Scanln(&n1,&n2,&n3)
if(n1 >= n2 && n1 >= n3) {
fmt.Print("\n");
fmt.Print("\tThe highest number is ",n1,".");
}
if(n2 >= n1 && n2 >= n3) {
fmt.Print("\n");
fmt.Print("\tThe highest number is ",n2,".");
}
if(n3 >= n1 && n3 >= n2) {
fmt.Print("\n");
fmt.Print("\tThe highest number is ",n3,".");
}
fmt.Print("\n\n");
fmt.Print("\tEnd of Program");
fmt.Print("\n");
}



No comments:

Post a Comment