Skip to content

EOGWANG777/Syntax-SyntaxSugar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Exercise 1:

Given the following code, change the code to implement:

  • inferred typing
  • string interpolation
  • and the ternary operator
int answer = 4;
string response;
if (answer < 9) 
{
    response = answer + " is less than nine";
}
else
{
    response = answer + " is greater than or equal to nine";
}

About

.NET 6.0 template project for the Syntax and Syntax Sugar exercise at TrueCoders

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%