function to accept interger

Code Example - function to accept interger

                
                        function to accept interger