Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyClass {
- public static void main(String args[]) {
- Scanner scan = new Scanner(System.in);
- System.out.println("Unesite x");
- int x=scan.nextInt();
- System.out.println("Unesite n");
- int n=scan.nextInt();
- double rezultat=(double)Math.pow(n,(double)1/x);
- System.out.println("Sum = " + rezultat);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement