This is an old revision of the document!


Lab 1 - Kotlin

Objectives

  • Introduction to Kotlin
  • Data types
  • Control Flow
  • Functions
  • Extension

Tasks

All tasks will be solved in the Kotlin Playground.

When a task is done, please share it to the teacher using the Share button located on the left.

  1. Write a Kotlin application that displays your name.
  2. Write a Kotlin function that computes the factorial for n in an iterative way (without recursion).
  3. Modify the previous function in such a way that is is written as a single expression.
mdad/laboratoare/01.1603088052.txt.gz ยท Last modified: 2020/10/19 09:14 by alexandru.radovici
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0