UNA HERMOSA MOTO

UNA HERMOSA MOTO

miércoles, 22 de abril de 2015

Problema Propuesto 10



10.-GRADOS SEXAGESIMALES A CENTESIMALES

Resultado de imagen para 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