Question from the Go test

Write a Go program that prints 1 if test is true, and 0 otherwise.

Easy

Given a boolean variable named test, how to define a variable a
conditionally?

Author: Communauté W3DStatus: PublishedQuestion passed 302 times
Edit
5
Community EvaluationsNo one has reviewed this question yet, be the first!