Rust Program to find Modulus of two Numbers
Program
fn main()
{
let a = 45;
let b = 10;
println!("Modulus of {0} and {1} is {2}", a, b, a / b);
}
Output
$ rustc ModulusTwoNumbers.rs
$ ./ModulusTwoNumbers
Modulus of 45 and 10 is 4