Question from the Go test

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

Medium

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

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