Crates.io | Circle_Area |
lib.rs | Circle_Area |
version | 0.1.4 |
source | src |
created_at | 2023-08-01 04:57:56.503103 |
updated_at | 2023-08-18 05:39:21.997996 |
description | circle of area function |
homepage | |
repository | |
max_upload_size | |
id | 931454 |
size | 1,471,793 |
This is a collection of some generally used math functions.
To use this crate in your Rust project, add the following line to your Cargo.toml
file:
[dependencies]
Circle_Area = "0.1.0"
you can simply run this camand in your terminal cargo add Circle_area
.
Here is the preview of main.rs
file:
use Circle_Area::circle_area;
fn main(){
// circle area
println!("Area of the 5.0 redius circle is:{}",circle_area(5.0));
//rect area
println!("Area of the Rectengle is:{}",rectangle_are(5.0,4.5));
}