Prints the square roots
System . out . print ( " The ▁ Square ▁ roots ▁ are : ▁ " + "NEW_LINE"); for ( pair p : ans ) { System . out . printf ( " % .4f " , p . first ) ; if ( p . second > 0 ) System . out . print ( " + " ) ; if ( p . second != 0 ) System . out . printf ( "%.4f*iNEW_LINE", p.second); else System . out . println ( ) ; } }