Search thousands of free JavaScript snippets that you can quickly copy and paste into your web pages. Get free JavaScript tutorials, references, code, menus, calendars, popup windows, games, and much more.
dart: arithmetic operators
void main() {
var num1 = 101;
var num2 = 2;
var res = 0;
res = num1+num2;
print("Addition: ${res}");
res = num1-num2;
print("Subtraction: ${res}");
res = num1*num2;
print("Multiplication: ${res}");
res = num1/num2;
print("Division: ${res}");
res = num1~/num2;
print("Division returning Integer: ${res}");
res = num1%num2;
print("Remainder: ${res}");
num1++;
print("Increment: ${num1}");
num2--;
print("Decrement: ${num2}");
}
Subscribe to:
Post Comments (Atom)
Why Carousels Are a Poor Way to View Product Images
Introducing the scrolling image stream ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ...
-
code.gs // 1. Enter sheet name where data is to be written below var SHEET_NAME = "Sheet1" ; // 2. Run > setup // // 3....
No comments:
Post a Comment