pls ans fast ..........
Share
pls ans fast ..........
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
class Design
{
int s, double s1;
int sum( int a , int b)
{
for(int i=a; i<=b; i++)
{
if (i%2==0)
{
s=s+i;
}
}
return s;
}
double sum (double a, double b)
{
s1=a+b;
return s1;
}
double mainmethod()
{
Design obj= new Design();
obj.sum(10,15);
obj.sum(9.0,10.0)
}
}
}