Showing posts with label One Dimensional Array Demonstration in Go. Show all posts
Showing posts with label One Dimensional Array Demonstration in Go. Show all posts

Friday, August 2, 2019

One Dimensional Array Demonstration in Go

Here is a sample program to show how to use One Dimensional Array Demonstration in Go.

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

/* example_no_1.go
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT
   Date     : July 31, 2019  Wednesday  9:22 PM
   Location : Bacolod City, Negros Occidental
   Website  : http://www.jakerpomperada.com
   Emails   : jakerpomperada@gmail.com and jake_pomperada@tup.edu.ph
 */

package main

import "fmt"

func main() {

score := [12] int {5,10,15,20,25,30,35,40,45,50,55,60};

    a := 0
fmt.Print("\n")
fmt.Printf("\tOne Dimensional Array Demonstration in Go");
fmt.Printf("\n\n");
for a=0; a<12; a++ {
   fmt.Printf("\t");
   fmt.Printf("score[%d]  = %d\n ",a+1,score[a]);
}
fmt.Print("\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}




Thursday, August 1, 2019

One Dimensional Array Demonstration in Go

Here is a very simple program to demonstrate how to use a one-dimensional array in Go.  I am using Goland 2018.3 as my text editor in writing my Go programs.

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

/* example_arrays.go
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT
   Date     : July 31, 2019  Wednesday  9:22 PM
   Location : Bacolod City, Negros Occidental
   Website  : http://www.jakerpomperada.com
   Emails   : jakerpomperada@gmail.com and jake_pomperada@tup.edu.ph
 */

package main

import "fmt"

func main() {

score := [12] int {5,10,15,20,25,30,35,40,45,50,55,60};

    a := 0
fmt.Print("\n")
fmt.Printf("\tOne Dimensional Array Demonstration in Go");
fmt.Printf("\n\n");
for a=0; a<12; a++ {
   fmt.Printf("\t");
   fmt.Printf("score[%d]  = %d\n ",a+1,score[a]);
}
fmt.Print("\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}