The pH of a solution measures how water ionizes to form H+ (acids) or OH− (bases).
There are four variables (pH, pOH, H+, and OH−) and two equations:
pH=−log10(H+)
pOH=−log10(OH−)
They are also related by pH+pOH=14.
The first line contains the number of data sets. Each data set is either an H+ concentration written as H = ... or an OH− concentration written as OH = ....
For each data set, print the pH rounded to the nearest hundredth.