this is the algorithm upon which ihave formed my code..if(n>1) then, if atleast 1 odd number is present in the sequence then the output is 1 .if all the numbers are even then output is 2. if n=1,then the output is the input itself...but im getting wrong anwer ...sum1 pls help...
↧