Who Invented Pi Value In India?

Who Invented Pi Value In India? Mathematics in India has a rich history. Indian mathematicians Madhava and Aryabhata made very significant contributions in finding the exact value of π (pi). Who first discovered pi? Ancient Greek mathematician Archimedes of Syracuse, who lived in the third century B.C. and is considered the greatest mathematician of the

How Do You Separate An Even And Odd Number In An Array?

How Do You Separate An Even And Odd Number In An Array? Initialise two index variable , left=0 and right=arr.length-1. Increment left variable until you get odd number. Decrement right variable until you get even number. If left < right, swap arr[left] and arr[right] In the end, you will see that you have even numbers