InformáticaBásico1 respuestas

Programa que elebe un numero al cuadrado en netbeans ?

Programa que elebe un numero al cuadrado en netbeans !

10Hiba1

En resumen

Que tengas buen dia / * * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. * / package brainly ; import java. Util.

Mejor respuesta

LucasEver5358

10

Que tengas buen dia / * * To change this license header, choose License Headers in Project Properties.

* To change this template file, choose Tools | Templates * and open the template in the editor.

* / package brainly ; import java.

Util.

Scanner ; / * * * * @author Administrador * / public class Brainly { / * * * @param args the command line arguments * / public static void main(String[] args) { Scanner scan = new Scanner(System.

In) ; int Exponente, base ; System.

Out. println("Ingrese El numero base : ") ; base = scan.

NextInt() ; System.

Out. println("Ingrese El numero exponente") ; Exponente = scan.

NextInt() ; int resultado = (int) Math.

Pow(base, Exponente) ; System.

Out. println("El Numero es " + base + " elevado a la " + Exponente + " El resultado es igual a " + resultado) ; } }.