Skip to content

Instantly share code, notes, and snippets.

@umair13adil
Created January 19, 2020 09:55
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/e6e814a6c5fab692e0519bc77ece3f10 to your computer and use it in GitHub Desktop.
Save umair13adil/e6e814a6c5fab692e0519bc77ece3f10 to your computer and use it in GitHub Desktop.
void main() {
void my_function(String a1, int a2){
print("This is my function! $a1 $a2");
}
my_function("String 1", 1);
my_function("String 2", 2);
my_function("String 3", 3);
int calculate(int a, int b){
return a + b;
}
print("Add 2 + 2: ${calculate(2,2)}");
print("Add 99 + 1: ${calculate(99,1)}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment