Swap two numbers without third variable

Easy 20 pts 100% acceptance csharp

Swap values of two integers a = 5 and b = 10 using arithmetic and print the result.

Examples

Sample
Output
a=10, b=5
Static hints
  • a = a + b; then b = a - b; then a = a - b;

Toolliyo Coach

Stuck? Get a nudge — not the answer

Progressive help: Nudge → Guide → Approach. Full solution stays behind the Solution tab.

Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details