gabelkova123 / lab

0 stars 0 forks source link

lab2_1 #1

Open gabelkova123 opened 1 year ago

gabelkova123 commented 1 year ago

/*

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 Lab_3; import java.util.Scanner; /*

https://github.com/author Student */ public class Task_1 {

/**

@param args the command line arguments */ public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("enter n: "); int n = in.nextInt(); int rez = 0; for (int i = 0; i < n; i++) { rez = (int) Math.pow (2, n); } System.out.println(rez); } }