Write a program to find the 4th power of a given number in java

Write a program to find the 4th power of a given number in java

public class FourthPower
{
    public static void main(String args[]){
        
        int number = 25;
        int fourPower=number*number*number*number;
        System.out.println("4th power of "+number+" is "+fourPower);
    
    }
}


Output 

4th power of 25 is 390625

Comments

Popular posts from this blog

Make a GST Calculator using HTML and JavaScript

How to make simple bill maker by using python tkinter

Write a program to find the sum of 1/2+4/3+5/6+8/7+9/10 using loop in java