Advertisement
Guest User

Untitled

a guest
Oct 18th, 2021
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. public class Main {
  2.  
  3.  
  4.  
  5.     public static void main(String[] args) {
  6.     // write your code here
  7.  
  8.         Scanner scan = new Scanner(System.in);
  9.         System.out.println("Unesite x");
  10.         int x=scan.nextInt();
  11.         System.out.println("Unesite n");
  12.         int n=scan.nextInt();
  13.  
  14.  
  15.         System.out.println("Rezultat = "+Math.cos(Math.pow(x,n)));
  16.  
  17.  
  18.  
  19.  
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement