An open API service indexing awesome lists of open source software.

https://github.com/truecodersio/syntax-and-syntax-sugar-exercise

.NET 6.0 template project for the Syntax and Syntax Sugar exercise at TrueCoders
https://github.com/truecodersio/syntax-and-syntax-sugar-exercise

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

## 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";
}
```