Menu
×
×
Correct!

Exercise:

Print "Yes" if x is equal to y, otherwise print "No".

package main import ("fmt") func main() { var x = 50 var y = 50 if x == y { fmt.Print("Yes") } else { fmt.Print("No") } }

Not Correct

Click here to try again.

Correct!

Next ❯
package main
import ("fmt")

func main() {
  var x = 50
  var y = 50
   x  y {
    fmt.Print("Yes")
  }  {
    fmt.Print("No")  
  }
}

    
  




Log in to keep your progress
Sign up to keep your progress

Completed 0 of 28 Exercises:

GO Syntax
GO Comments
GO Variables
GO Data Types
GO Arrays
GO Operators
GO Conditions
GO Switch
GO Loops
GO Functions

×

Reset the Score?

This will reset the score of ALL 28 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 28 GO exercises.

Share your score: