write a program in java to store 20 numbers in a single dimensional array. Now display only those numbers that are perfect square
Answers
Answered by
0
Answer:
class abc
{
public static void main(String args[])
{
Scanner sc= new Scanner(System.in);
int a= new int[20];
for(i=1; i<21;i++)
{
System.out.print("Enter a number") ;
a[i]= sc.nextInt();
}
for (i=1;i<21;i++)
{
if(a[i]
Similar questions