06 | Java Program To Swap Values Of Two Variables Without Using Third Variable

preview_player
Показать описание
Preparing for the java interview or exam? Checkout my color-coded Java Revision Book that is specially designed for refreshing java concepts

Don't be a stranger '-'

Connect with me on the below platforms.

Рекомендации по теме
Комментарии
Автор

It can be done as below, if we wish to do with division and multiplication.
b= b/a ;
a= a*b;
b= a/b;

vishwathakkar