among as a String dont count this request lic int stions va

among as a String (don\'t count this request lic int stions ( value indicating if the num is odd or not (written n!) is equal to the product of 1ic

Solution

class Geek
{
String name;
int count;
Geek(String n)
{
name=n;
count=0;
}
public String getName()
{
return name;
}
public int getNumberofQuestions()
{
return count;
}
public boolean isOdd(int t)
{
if(t%2==0)
return false;
else
return true;
}
public String rev(String r)
{

char ch[]=new char[r.length()];
for(int i=0;i < r.length();i++)
ch[i]=r.charAt(i);
String a=ch.toString();
return a;
}
public int factorial(int num)
{
int fact=1;
for(int i=num;i>=1;i--)
fact*=i;
return fact;
}
public boolean isAlpha(char letter)
{
if((letter>=\'a\' && letter<=\'z\') && (letter>=\'a\' &&

letter<=\'z\'))
return true;
else
return false;
}
public int smallest(int x,int y,int z)
{
if(x>y && x>z)
return x;
else if(y>z)
return y;
else
return z;
}
public boolean isPrime(int number)
{
for(int i=2; i<=number/2; i++){
           if(number % i == 0){
               return false;
           }
       }
       return true;
}
}

 among as a String (don\'t count this request lic int stions ( value indicating if the num is odd or not (written n!) is equal to the product of 1ic Solutioncla
 among as a String (don\'t count this request lic int stions ( value indicating if the num is odd or not (written n!) is equal to the product of 1ic Solutioncla

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site