write a program to check number is divisible by 7 or not if it is divisible then find square of number is not find its double
Answers
Answered by
1
Heyaa mate..❤
import.java.util.*;
class Even
{
public static void main(String args[])
Scanner sc=new Scanner (System.in);
Sopln("Enter any number");
int a=sc.nextInt();
if(a%2==0)
{
int j=a*a;
Sopln(j);
}
else
{
int j =a*2;
Sopln(j);
}
}
}
Hope it helps ..
Please mark it as brainliest...
import.java.util.*;
class Even
{
public static void main(String args[])
Scanner sc=new Scanner (System.in);
Sopln("Enter any number");
int a=sc.nextInt();
if(a%2==0)
{
int j=a*a;
Sopln(j);
}
else
{
int j =a*2;
Sopln(j);
}
}
}
Hope it helps ..
Please mark it as brainliest...
Similar questions