diff options
| author | Andrew Guschin <guschin.drew@gmail.com> | 2022-12-29 15:20:32 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin.drew@gmail.com> | 2022-12-29 15:20:32 +0400 |
| commit | 0be2be0a92f992bf8ee9eff701cb19658a1e7544 (patch) | |
| tree | 5d855004fd8cc067a594475c0a666eb01f0ceefa /lab4/src/main.rs | |
| parent | 056f59346b727c9367998a423551eaba52854fce (diff) | |
Diffstat (limited to 'lab4/src/main.rs')
| -rw-r--r-- | lab4/src/main.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lab4/src/main.rs b/lab4/src/main.rs index 7609af9..ee41b4f 100644 --- a/lab4/src/main.rs +++ b/lab4/src/main.rs @@ -1,7 +1,6 @@ use rug::{Complete, Integer}; use std::io; - fn main() { println!("Введите положительное число:"); let mut p = String::new(); @@ -17,7 +16,7 @@ fn main() { Ok(parsed) => parsed.complete(), Err(_) => { println!("Не удалось считать число"); - return () + return (); } }; @@ -37,8 +36,7 @@ fn main() { if is_prime { println!("Число {} является простым", &p); - } - else { + } else { println!("Число не является простым"); } } |