import java.util.*;
public class Aplicirculos
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int r;
double a,p;
System.out.println("Teclea el valor del radio" + "\t");
r = sc.nextInt();
circulos e1 = new circulos();
e1.set_radio(r);
a=e1.calc_area();
p=e1.calc_perimetro();
System.out.println("El area es: "+a);
System.out.println("El perimetro es: "+p);
} // del main
} // de la clase
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.