Algorithm In Pseudocode For Outputting Integer