Files
Java/Experiment/graph/Exp3/Circle.mermaid
2025-11-06 10:29:13 +08:00

10 lines
438 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
flowchart TD
Start([开始]) --> A[创建Circle对象c半径为5]
A --> B1[Circle构造函数执行]
B1 --> B2[设置radius=5]
B2 --> B3[计算周长$$perimeter=2\times π\times radius$$]
B3 --> B4[计算面积$$area=π\times radius\times radius$$]
B4 --> C["调用c.getRadius()打印半径"]
C --> D["调用c.getPerimeter()打印周长"]
D --> E["调用c.getArea()打印面积"]
E --> End([结束])