Author: admin

  • Programming Style

    Programming style is all about following some rules while developing programs. These good practices impart values like readability, and unambiguity into your program. A good program should have the following characteristics − For example, if you make a comment like the following, it will not be of much help − However, if you are calculating…

  • Variables

    Variables are an important part of any programming. They are the names you give to computer memory locations which are used to store values in a computer program and later you use those names to retrieve the stored values and use them in your program. Kotlin variables are created using either var or val keywords and then an equal…

  • Program Libraries

    There are various Fortran tools and libraries. Some are free and some are paid services. Following are some free libraries − The following libraries are not free −

  • Keywords

    Kotlin keywords are predefined, reserved words used in Kotlin programming that have special meanings to the compiler. These words cannot be used as an identifier (variables names, package names, function names etc.) and if used then compiler will raise an exception. Kotlin uses fun keyword to define a function, so if we we will try to use…

  • Numeric Precision

    We have already discussed that, in older versions of Fortran, there were two real types: the default real type and double precision type. However, Fortran 90/95 provides more control over the precision of real and integer data types through the kind specifie. The Kind Attribute Different kind of numbers are stored differently inside the computer. The kind attribute allows you to specify how…

  • Comments

    A comment is a programmer-readable explanation or annotation in the Kotlin source code. They are added with the purpose of making the source code easier for humans to understand, and are ignored by Kotlin compiler. Just like most modern languages, Kotlin supports single-line (or end-of-line) and multi-line (block) comments. Kotlin comments are very much similar…

  • Intrinsic Functions

    Intrinsic functions are some common and important functions that are provided as a part of the Fortran language. We have already discussed some of these functions in the Arrays, Characters and String chapters. Intrinsic functions can be categorised as − We have discussed the array functions in the Arrays chapter. In the following section we…

  • Basic Syntax

    Kotlin Program Entry Point An entry point of a Kotlin application is the main() function. A function can be defined as a block of code designed to perform a particular task. Let’s start with a basic Kotlin program to print “Hello, World!” on the standard output: When you run the above Kotlin program, it will generate the…

  • Architecture

    Kotlin is a programming language and has its own architecture to allocate memory and produce a quality output to the end user. Following are the different scenarios where Kotlin compiler will work differently. Whenever two byte coded files ( Two different programs from Kotlin and Java) runs on the JVM, they can communicate with each…

  • Modules

    A module is like a package where you can keep your functions and subroutines, in case you are writing a very big program, or your functions or subroutines can be used in more than one program. Modules provide you a way of splitting your programs between multiple files. Modules are used for − Syntax of…