How to check the output for the custom inputs

when i am providing custom input how to check what is the output i am getting

for custom inputs, calculate the output yourself, and then match with code’s output to see whether code is working fine or not!