In a program,I am giving input as two different time periods(HH::MM::SS) and getting the output as the total time.
Suppose if the inputs are:
1::30::40
2::40::40
then output is 4::11::20.
Now the question I want to ask is during the input if the HH is typed wrongly as
#::30::40, then how to create an error message fo this?