Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package tuto1;
- /*author belial9826
- aplicacion para juangonza.wordpress.com*/
- public class tuto1{
- public static void main(String[] args) {
- float n1, n2, d;
- System.out.print("Ingrese el primer numero: ");
- n1 = Leer.datoInt();
- System.out.print("Ingrese el segundo numero: ");
- n2 = Leer.datoInt();
- if (n2 == 0){
- System.out.println("\nNo se puede realizar la operacion");
- }
- else{
- d = n1/n2;
- System.out.println("El resultado es: "+d);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment