/*WAP to Left shifting as a quick way to multiply by 2.
Save As: MultByTwo.java
*/
class MultByTwo { public static void main(String args[]) { int i; int num = 0xFFFFFFE; for(i=0; i<4; i++) { num = num << 1; System.out.println(num); } } }
there is some good c ,java, sql and vb6 programs,Windows tricks, sms shorthand etc
class MultByTwo { public static void main(String args[]) { int i; int num = 0xFFFFFFE; for(i=0; i<4; i++) { num = num << 1; System.out.println(num); } } }
No comments:
Post a Comment