GO: GO Programming Language for Beginners, 2019 Edition. by Publishing GO

GO: GO Programming Language for Beginners, 2019 Edition. by Publishing GO

Author:Publishing, GO [Publishing, GO]
Language: eng
Format: epub
Published: 2019-08-07T16:00:00+00:00


Flow Diagram

Example

package main

import "fmt"

func main () {

/* local variable definition */

var a int = 10

/* do loop execution */

for a < 20 {

if a == 15 {

/* skip the iteration */

a = a + 1 ;

continue ;

}

fmt . Printf ( "value of a: %d\n" , a );

a ++;

}

}

When the above code is compiled and executed, it produces the following result −

value of a: 10

value of a: 11

value of a: 12

value of a: 13

value of a: 14

value of a: 16



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.