Computer Science, asked by bijaivir, 1 year ago

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 Anshi2005
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);
}
}
}

<b>NOTE:-Here,Sopln means System.out.println</b>
Hope it helps ..
Please mark it as brainliest...
Similar questions