package fracciones;
import java.util.Scanner;
public class Fracciones {
public static void main(String[] args) {
Scanner entrada = new Scanner (System.in);
fraccion f = new fraccion ();
System.out.println("Ingrese el numerador");
f.numerador = entrada.nextDouble();
System.out.println("Ingrese el denominador");
f.denominador = entrada.nextDouble();
System.out.println(f.mostrarF());
System.out.println(f.mostrarD());
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.