import java.util.Scanner;
public class Aplipies
{
public static void main (String [] args)
{
double piesito;
Scanner sc=new Scanner(System.in);
System.out.print("teclea la cantidad en pies: ");
piesito= sc.nextDouble();
conversionespies junior=new conversionespies();
junior.set_conversionespies(piesito);
System.out.print("pulgadas \t");
System.out.print(junior.conv_pulgadas());
System.out.print("\n");
System.out.print("yardas \t"+"\t");
System.out.print(junior.conv_yardas());
System.out.print("\n");
System.out.print("metros \t"+"\t");
System.out.print(junior.conv_metros());
System.out.print("\n");
System.out.print("centimentros \t");
System.out.print(junior.conv_centis());
System.out.print("\n");
}
}
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.