Skip to content

Instantly share code, notes, and snippets.

@faizan1947
Created February 19, 2022 12:29
Show Gist options
  • Save faizan1947/f0fb6683e0d770ac42e6ea7dd03817f5 to your computer and use it in GitHub Desktop.
Save faizan1947/f0fb6683e0d770ac42e6ea7dd03817f5 to your computer and use it in GitHub Desktop.
Create and use function
void main(){
var name = 'Faizan';
var age = 20;
var height = 1.14;
describe(name,age,height);
describe("JONI",24,22.4);
}
void describe(String name, int age, double height){
print("Hello, I'm $name");
print("I'm $age years old");
print("I'm $height meters tall");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment