June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -0,0 +1,8 @@
|
|||
/* created by Aykayayciti Earl Lamont Montgomery
|
||||
April 9th, 2018 */
|
||||
|
||||
size = "little"
|
||||
> @ "Mary had a $size lamb"
|
||||
|
||||
// line 1: use of the = operator
|
||||
// line 2: use of the @ and $ operator
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
import strformat
|
||||
|
||||
var str: string = "little"
|
||||
echo fmt"Mary had a {str} lamb"
|
||||
echo &"Mary had a {str} lamb"
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
>>> extra = 'little'
|
||||
>>> f'Mary had a {extra} lamb.'
|
||||
'Mary had a little lamb.'
|
||||
>>>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
: printf("Mary had a %s lamb.\n", "little")
|
||||
Mary had a little lamb.
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
Dim name as String = "J. Doe"
|
||||
Dim balance as Double = 123.45
|
||||
Dim prompt as String = String.Format("Hello {0}, your balance is {1}.", name, balance)
|
||||
Console.WriteLine(prompt)
|
||||
Loading…
Add table
Add a link
Reference in a new issue