The purpose of this lab is to discover the basics of the GNAT toolchain on Windows and to put that knowledge to use by declaring some variables.


  • Follow the instructions in the source file

  • Locate and click on the “Compile & Run” button in GNAT Studio.


Labs Tips

  • Comment your code by using -- Line comments

  • Ada identifiers are written in Mixed_Case.

  • Use thousand separators when possible 1_000

  • Float and integer literals are not identical

  • Ada types helps expressivity

    • Natural for counting things

    • Named numbers constant for perfect precision

    • Indexing is mostly used through Positive

    • Strict typing is a pillar of the language

  • More resource on recommended Ada style can be found at