This commit is contained in:
2024-03-05 20:02:32 +01:00
parent 364198aab5
commit d5e3b2f6c9

View File

@@ -1,6 +1,7 @@
use std::{io, str::ParseBoolError};
fn main() {
let mut droga = String::new();
let mut czas = String::new();
//wyswielt i pobierz droge
@@ -17,7 +18,7 @@ fn main() {
println!("Predkosc samochodu wynosi: {}KM/h", wynik);
}
//funkcja
fn kalkualtorPredkosci(mut droga: f32, mut czas: f32) -> f32{
droga*=1000.0;
czas*=60.0;