2019-10-09 16:58:18 +03:00
|
|
|
## String Templates (#3)
|
|
|
|
|
2020-04-28 23:39:10 +03:00
|
|
|
Write a function `show()` with parameters `i: Int`, `s: String`, `c: Char` and
|
|
|
|
`d: Double`. On the console, `show()` displays the value of each parameter on
|
|
|
|
its own line: first the name of the identifier, then a colon and a space, and
|
|
|
|
then the value of that identifier. Surround the `String` value with double quotes
|
2020-05-12 19:08:29 +03:00
|
|
|
and the `Char` value with single quotes.
|
2019-10-09 16:58:18 +03:00
|
|
|
|
|
|
|
Sample output:
|
|
|
|
|
|
|
|
```
|
|
|
|
i: 10
|
|
|
|
s: "abc"
|
|
|
|
c: 'a'
|
|
|
|
d: 1.0
|
2020-10-11 21:40:34 +03:00
|
|
|
```
|