Rust program to calculate the area and circumference of a circle
kw.rs
Output
kodingwindow@kw:~$ rustc kw.rs
kodingwindow@kw:~$ ./kw ——————————————————————————————————————————— Program to calculate the area and circumference of a circle ——————————————————————————————————————————— The area of a circle is 78.5 The circumference of a circle is 31.400002 ——————————————————————————————————————————— kodingwindow@kw:~$
What Next?
Rust program to accept the input from a user
Advertisement