Menu
×
×
Correct!

Exercise:

Print "Hello World" if x is equal to y.

int x = 50; int y = 50; if (x == y) { Console.WriteLine("Hello World"); }

Not Correct

Click here to try again.

Correct!

Next ❯
int x = 50;
int y = 50;
 (x  y) 
{
  Console.WriteLine("Hello World");
}

  
  
  




Go to w3schools.com
Reset Score
Close This Menu

 

C# Syntax
C# Comments
C# Variables
C# Data Types
C# User Input
C# Operators
C# Math
C# Strings
C# Booleans
C# If...Else
C# Switch
C# Loops
C# Arrays
C# Methods
C# Classes/Objects
C# Exceptions





×

Reset the Score?

This will reset the score of ALL 58 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 58 C# exercises.

Share your score on facebook: