Skip to content

Instantly share code, notes, and snippets.

@Hackathonwave
Created October 26, 2023 12:58
Show Gist options
  • Save Hackathonwave/0c3bf4c17913fd767b0fc35db9737ddf to your computer and use it in GitHub Desktop.
Save Hackathonwave/0c3bf4c17913fd767b0fc35db9737ddf to your computer and use it in GitHub Desktop.
void main() {
double calculateCircleArea (double radius) {
double area = 3.14 * radius * radius;
return area;
}
double radius = 5;
double area = calculateCircleArea(radius);
print(area);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment