Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Password {
  4. public static void main(String[] args) {
  5. Scanner scan = new Scanner(System.in);
  6. int n= Integer.parseInt(scan.nextLine());
  7. int sum= 0;
  8. for (int i=0;i<n;i++){
  9. int num= Integer.parseInt(scan.nextLine());
  10. sum += sum;
  11. }
  12. System.out.println(sum);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement