summaryrefslogtreecommitdiff
path: root/sem2/src/main.rs
blob: f60350de3dca7116b3a660540a9584d9469291f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
use inquire::Text;
mod mpn;

fn main() {
    let a = Text::new("Введите число:").prompt().unwrap();
    let a = mpn::Number::parse(&a).unwrap();
    let b = Text::new("Введите число:").prompt().unwrap();
    let b = mpn::Number::parse(&b).unwrap();
    let c = a + b;
    println!("Number: {}", c);
}