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