practice for programmers
Logged in as Anonymous Student
273387 Swift - Variables, conditions, loops
Print "Hello Mor Nor" (without quotes).
Read in a number, add 7, and print it out.
Print FizzBuzz from 1 to 20. Read the Fizz value and the Buzz value from the input.
Print the Fibonacci sequence. The number of items to print is determined by an integer read in on the input. If the input is 0 then print nothing.
First, you take the position of the letter in the alphabet, P (P is 1-indexed here). Then, you print each letter until the input (inclusive) on a line, preceded by P-1 and repeat that letter P times, interleaving with spaces.
Read in a number and check if it is a palindrome or not.