Created
February 19, 2022 12:29
-
-
Save faizan1947/f0fb6683e0d770ac42e6ea7dd03817f5 to your computer and use it in GitHub Desktop.
Create and use function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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