class Pro10
{
public static void main(String arg[])
{
int a;
a=Integer.parseInt(arg[0]);
if((a%3==0)&&(a%5==0)&&(a%7==0))
{
System.out.print("Numberis divisible by 3 ,5,7");
}
else
System.out.print("Number is not divisible by all of these");
}
}
Tuesday, 4 June 2013
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment