package com.my.demo; public class Test3 { public static void main(String[] args){ int a=1; for (int i=0;i<9;i++){ a=(a+1)*2; } System.out.println(a); } }
package com.my.demo; public class Test3 { public static void main(String[] args){ int a=1; for (int i=0;i<9;i++){ a=(a+1)*2; } System.out.println(a); } }