Friday, June 24, 2022

Increment and Decrement Operators in Go

 A program that demonstrate increment and decrement operators 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 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


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


package main

import "fmt"

func main() {

    fmt.Printf("\n")
    fmt.Printf("\tIncrement and Decrement Operators in Go\n\n")
    var x = 10

    fmt.Printf("\tInitial Value of X  : %d\n", x)
    x++

    fmt.Printf("\n")
    fmt.Printf("\tValue of X after Increment : %d\n\n", x)

    x--
    fmt.Printf("\tValue of X after Decrement : %d\n", x)
    fmt.Printf("\n")
    fmt.Printf("\tEnd of Program")
    fmt.Printf("\n")
}

No comments:

Post a Comment