simplecalculator_function 0.1.3

In this library I am going to show you how to make a very basic Calculator using two user input values form user and perform some mathematical operation like addition, subraction etc
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub fn calculator_function(c:f64,d:f64) 
{

    let sum : f64 =  c + d ; 
    let sub : f64 =  c - d ;
    let multi : f64 = c * d ;
    let divi : f64 = c / d ;
    let modul : f64 = c % d ;
println!("Addition = {}",sum);
println!("Subtraction =  {}",sub);
println!(" multiplication = {}",multi);
println!(" division = {}",divi);
println!(" modulus = {}",modul);
  
}