Cómo escribir un programa Java perímetro Square en Java Programming Language ?
Java Programa perímetro Square
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner Teclado=new Scanner(System.in);
- int LadoCuadrado, Perimetro;
- System.out.println("¿Cuanto mide el lado del cuadrado?");
- LadoCuadrado=Teclado.nextInt();
- Perimetro=LadoCuadrado*4;
- System.out.println("El perimetro es: "+ Perimetro);
- }
- }
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.