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