practice for programmers
Logged in as Anonymous Student
273387 MAD 63 - C2 Swift Basics
Print "Hello Mor Nor" (without quotes).
Hello 3 times
Just print "Hello" 3 times, one per line.
Read in a line. Print it out 2 times, separated by a space.
Read in a number, add 7, and print it out.
Read in a number. Multiply it by itself (square it). Print it out.
Two strings are equal
Read in two strings (one per line) and print "exact match" if they are exactly the same (else print "not the same").
Reverse only 3
Read in 3 lines. Print out the lines in reverse order.
Read in 2 integers. Multiply. Print.