Function gcd_bitwise::interface::gcd[][src]

pub fn gcd(num1: u64, num2: u64) -> u64
Expand description

Examples

use gcd_bitwise::interface::gcd;

fn main() {
    let num1 = 15;

    let num2 = 51;
     
    let gcd = gcd(num1, num2);
     
    println!("gcd: {}", gcd); // 3   
}