Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  sum of odd and even
Language: JAVA
Code:
public class Sum(int n)     
{
int n1,n2=0,n3;
while(n1!=0)
{
n1=n1%10;
if(n2%2!=0)
n2+=n1;
n1=n1/10;
}
 while(n2%2==0)
n3=-1;
else n3=1;
retuen n3;
}
Comments: