displaying output for two numbers