swift 4.2 : Multiplication table

Moonshine 
Moon 沐
Published in
2 min readOct 3, 2018
“framed eyeglasses on top open book” by Dariusz Sankowski on Unsplash

steps:

1.use (x,y) & UILbael to build a table.
2.use if…else to highlight different numbers.
3.use if…else to find out odd/even numbers with different backgroundColor & textColor
4.only odd numbers
5.only even numbers
6.multiple of 4
7.multiple of 5
8.multiple of 5 with different backgroundColor

1.use (x,y) & UILbael to build a table.
2.use if…else to highlight different numbers.

3.use if…else to find out ood/even numbers with different backgroundColor & textColor

4.only odd numbers

5.only even numbers

6.multiple of 4

7.multiple of 5
8.multiple of 5 with different backgroundColor

It’s fun.
But I really want to figurt out how to make shape(eg: triangle/cone) on this table.
Hope you enjoy my work.

--

--