10.-GRADOS SEXAGESIMALES A CENTESIMALES
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package problema20;
import java.io.*;
/**
*
* @author abel montalvan
*/
public class Problema20 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException {
double s,c;
BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
System.out.println("Grados Sexagesimales: ");
s=Integer.parseInt(in.readLine());
c=s*200/180;
System.out.println("");
System.out.println("A grados Centesimales: "+c);
}
}
No hay comentarios:
Publicar un comentario