Skip to content

Instantly share code, notes, and snippets.

@umair13adil
Created January 13, 2020 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umair13adil/8b12f8803afa8ddb5a720fe263da1af2 to your computer and use it in GitHub Desktop.
Save umair13adil/8b12f8803afa8ddb5a720fe263da1af2 to your computer and use it in GitHub Desktop.
void main() {
var c1 = 89;
var c2 = 50;
print("Addition Result: ${c1+c2}");
print("Subtraction Result: ${c1-c2}");
print("Multiplication Result: ${c1*c2}");
print("Division Result: ${c1/c2}");
var c3 = 1;
print("Counter Result: ${c3 = c3+ 1}");
print("Counter Result: ${c3 = c3+ 1}");
print("Counter Result: ${c3 = c3+ 1}");
print("Counter Result: ${c3 = c3+ 1}");
print("PreFix Counter Result: ${c3 = ++c3}");
print("PreFix Counter Result: ${c3 = ++c3}");
print("PreFix Counter Result: ${c3 = ++c3}");
print("PreFix Counter Result: ${c3 = --c3}");
print("PreFix Counter Result: ${c3 = --c3}");
print("PreFix Counter Result: ${c3 = --c3}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment