swap variables without temp
import java.*; class noTemp { public static void main(String a[]) { int x = 10; int y = 5; x = x + y; y = x - y; x = x - y; System.out.println(x , y); } }
Refresh | This website codeinu.net/language/java/c1575901-swaping-without-temp is currently offline. Cloudflare's Always Online™ shows a snapshot of this web page from the Internet Archive's Wayback Machine. To check for the live version, click Refresh. |
swap variables without temp
import java.*; class noTemp { public static void main(String a[]) { int x = 10; int y = 5; x = x + y; y = x - y; x = x - y; System.out.println(x , y); } }
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us