Skip to content

Commit

Permalink
for loop with continue
Browse files Browse the repository at this point in the history
  • Loading branch information
Tej-Singh-Rana authored Feb 5, 2022
1 parent 95e84c3 commit 99ae434
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions beginner-level/control-flow/For-loop/for-loop-six.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,28 @@ import "fmt"

func main() {
// Main code block
// "for" loop with "continue"

// "for" loop with "continue"
for i := 0; i <= 10; i++ {
fmt.Println(i)
continue
}
fmt.Println("Task completed!!")

}

/*
_Output_:-
0
1
2
3
4
5
6
7
8
9
10
Task completed!!
*/

0 comments on commit 99ae434

Please sign in to comment.