Author: admin

  • Booleans

    Many times we come across a situation where we need to take decision in Yes or No, or may be we can say True or False. To handle such situation Kotlin has a Boolean data type, which can take the values either true or false. Kotlin also has a nullable counterpart Boolean? that can have the null value. Create Boolean Variables A boolean variable can be created using Boolean keyword and this…

  • Overview

    Go is a general-purpose language designed with systems programming in mind. It was initially developed at Google in the year 2007 by Robert Griesemer, Rob Pike, and Ken Thompson. It is strongly and statically typed, provides inbuilt support for garbage collection, and supports concurrent programming. Programs are constructed using packages, for efficient management of dependencies.…

  • Operators

    An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. Kotlin is rich in built-in operators and provide the following types of operators: Now let’s look into these Kotlin Operators one by one. (a) Kotlin Arithmetic Operators Kotlin arithmetic operators are used to perform basic mathematical operations such as…

  • Debugging Program

    A debugger tool is used to search for errors in the programs. A debugger program steps through the code and allows you to examine the values in the variables and other data objects during execution of the program. It loads the source code and you are supposed to run the program within the debugger. Debuggers…

  • Data Types

    Kotlin data type is a classification of data which tells the compiler how the programmer intends to use the data. For example, Kotlin data could be numeric, string, boolean etc. Kotlin treats everything as an object which means that we can call member functions and properties on any variable. Kotlin is a statically typed language,…

  • 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…