430 B
430 B
String Templates (#3)
Write a function show()
with parameters i: Int
, s: String
, c: Char
and d: Double
. On the console, the function displays the value of each
parameter on its own line: first the name of the identifier, a colon and space,
and then the value of that identifier. Surround the string value with double
quotes and the char value with single quotes.
Sample output:
i: 10
s: "abc"
c: 'a'
d: 1.0