Skip to content

Cohnosuke/swap_two_variables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Swap_two_variables

This is example code for swap two number variables.

a = -(a + b)
b = -(a + b)
a = -(b + a)

DEMO

Show what happens.

swap_two_variables2

as you can see, two number swapped.

Features

This code looks like some mathmatical technique but none. worthy of a special mention, there is no tempolary variable.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages