martes, 21 de abril de 2015

e_14


package ejercicio14;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class EJERCICIO14 {

    public static void main(String[] args) throws IOException {
        // TODO code application logic here
        int n;
        String r;
         BufferedReader in=new BufferedReader(new  InputStreamReader(System.in));
 System.out.println("Numero: ");
 n=Integer.parseInt(in.readLine());//ojo
 if(n%3==0 && n%5==0)
 {
     r="SI ES MULTIPLO DE 3 Y 5";
 }
else
 {
     r="NO ESMULTIPLO DE 3 Y 5";
 }
  System.out.println("");
 System.out.println("Resultado:" + r);
 System.out.println();
  }
}

No hay comentarios:

Publicar un comentario