Mode:
Duration:
1
2
3
4
5
6
7
8
9
module Main exposing (..)
import Browser
import Html exposing (Html, div, text)
n = 5
view = div [] (List.map (\i -> div [] [ text (String.fromInt n ++ " x " ++ String.fromInt i ++ " = " ++ String.fromInt (n*i)) ]) (List.range 1 10))
main = Browser.sandbox { init = (), update = \_ model -> model, view = \_ -> view }Coding works best on desktop or with an external keyboard.