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
- Host: GitHub
- URL: https://github.com/truecodersio/syntax-and-syntax-sugar-exercise
- Owner: truecodersio
- Created: 2022-09-06T18:54:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-28T16:03:54.000Z (over 1 year ago)
- Last Synced: 2025-04-12T19:45:13.145Z (about 1 year ago)
- Language: C#
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 427
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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";
}
```