Hi, is there any wrong in my program. i had understood that for every +ve integer this program is valid. But how to -ve integers will be executed is there any instruction that i have add to my program. could any one help me.
Please read the instructions, they describe what behaviour to test for
No, not quite. You will need to read the instructions more carefully for both of those exercises.