Compliment based on character length
Exercise Type: Implementation
Instructions
Step 1
Store a character string in a variable text
, for instance this:
"My awesome string"
Step 2
Use nchar()
in an if
statement, and display a compliment when the value of text
is longer than 7 characters, but only then!