You are viewing a single comment's thread. Return to all comments →
class Solution{ public static void main(String args[]){ Scanner sc=new Scanner(System.in); int q=sc.nextInt(); for(int i=0;i
s=(int)Math.pow(2.0,j)*b+s; System.out.print(""+s); System.out.print(" "); } System.out.print("\n"); } }
}
Seems like cookies are disabled on this browser, please enable them to open this website
Java Loops II
You are viewing a single comment's thread. Return to all comments →
class Solution{ public static void main(String args[]){ Scanner sc=new Scanner(System.in); int q=sc.nextInt(); for(int i=0;i
}