Java/ J2EE, Oracle Adf Blog
Thursday, 12 February 2015
Swaping Two Numbers
public class Swap {
public static void main(String[] args) {
int a=10;
int b=20;
a=a*b;
b=a/b;
a=a/b;
System.out.println(a);
System.out.println(b);
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment