दो नंबर स्वैप करें. Kotlin

दो नंबर स्वैप करें. Kotlin



अस्थायी चर का उपयोग करके दो नंबरों को स्वैप करें
Kotlin example code

Kotlin

  Output result
--Before swap--
First number = 1.2
Second number = 2.45
--After swap--
First number = 2.45
Second number = 1.2
अस्थायी चर का उपयोग किए बिना दो नंबर स्वैप करें
Kotlin example code

Kotlin

  Output result
--Before swap--
First number = 12.0
Second number = 24.5
--After swap--
First number = 24.5
Second number = 12.0

Hot Network Questions



.dll file is missing? Download for Windows 7, 8, 10 - Fix .dll file Missing Error on Windows | dll-box.com

BeeCoder.ORG

open source code and examples

We have been online since 2021 and 1 millions of people around the globe have visited our website since then

More visitors every month