Computer Science, asked by ayanika14banerjee, 6 months ago

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 adityasharma09
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