Posts

Dart Basic with Codes

Dart is a client-optimized programming language for apps on multiple platforms. It is developed by Google and is used to build mobile, desktop, server, and web applications. Dart is an object-oriented, class-based, garbage-collected language with C-style syntax. Dart can compile to either native code or JavaScript.   Installation 1. Dart SDK 2. Download IntelliJ IDEA   3. install Dart plugin in IntelliJ IDEA Basic Codes   void main(){ print( 'Hello Rz' ) ; } Decision Making   else if Statement Electricity calculator  import 'dart:io' ; void main (){ var pre , cur , amt , units ; print ( 'Enter previous units :' ) ; pre = int. parse (stdin.readLineSync()) ; print ( 'Enter current units :' ) ; cur = int. parse (stdin.readLineSync()) ; units=cur-pre ; print( 'Consumed units: ${units} ' ) ; if (units== 0 ){ print( 'You have to pay 50' ) ; } else if (units>= 1 && units<= 100 ){ print( 'You have
Recent posts