Given two natural numbers N1 and N2.The task is to find the maximum possible sum after swapping of a single digit between two given natural numbers. Examples : Input : N1=123 N2=998 Read more →
Swap
3 postsGiven an array Arr[N] of integers, where N is the size of the array. Our task is to rearrange the array such that arr[i]%2 = i%2, in other words, the element at Read more →
In this article, you will learn to swap two numbers in C programming. Examples : Input : x = 10, y = 20; Output : x = 20, y = 10 Input Read more →