Generation

generate functionSat, 15 Apr 2023

Ingrese a: 3.9 Ingrese b: 6.0 Ingrese c: 1.2 No es un triángulo valido. Ingrese a: 1.9 Ingrese b: 2 Ingrese c: 2 El triángulo es isósceles. Ingrese a: 3.0 Ingrese b: 5.0 Ingrese c: 4.0 El triángulo es escaleno.

let a = 0.0; let b = 0.0; let c = 0.0; println!("Ingrese a: "); io::stdin().read_line(&mut a).expect("Error"); println!("Ingrese b: "); io::stdin().read_line(&mut b).expect("Error"); println!("Ingrese c: "); io::stdin().read_line(&mut c).expect("Error");

Questions about programming?Chat with your personal AI assistant