04-if-and-loop

command
v0.0.0-...-e665a74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 2 Imported by: 0

README

If and Loop

  1. Open directory
cd /root/automation-technology/chapter01-basic-knowledges/1.1-basic-golang/04-if-and-loop
  1. Run command
go mod init automationworkshop/main
go mod tidy
  1. Run command
go run main.go
CitizenID 1234, you are logged in
---
You are Female
---
Loop i=0
Loop i=1
Loop i=2
Loop i=3
Loop i=4
Loop i=5
Loop i=6
Loop i=7
Loop i=8
Loop i=9
---
Country 0=Thailand
Country 1=Japan
Country 2=China
Country 3=Korea
Country 4=Vietnam
---
For i=1
For i=2
For i=3
For i=4
For i=5
For i=6
For i=7
For i=8
For i=9
For i=10
---
For n=1
For n=2
For n=3
For n=4
For n=5
For n=6
For n=7
For n=8
For n=9
For n=10
For n=11

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL