Function to print the desired result if unique solutions exists , otherwise prints no solution or infinite solutions depending upon the input given .
void PrintResult ( float a [ ] [ M ] , int n , int flag ) { cout << " Result ▁ is ▁ : ▁ " ; if ( flag == 2 ) cout << " Infinite ▁ Solutions ▁ Exists " << endl ; else if ( flag == 3 ) cout << " No ▁ Solution ▁ Exists " << endl ;