In: Computer Science
I WROTE THE CODE IN JAVA LANGUAGE:
CODE:
public class Main
{
public static void main(String[] args)
{
boolean myarray[]=new boolean[40]; //boolean array
declaration with size 40.
for(int i=0;i<40;i++)//for loop used to print
default values.
System.out.print("
"+myarray[i]);
}
}
OUTPUT:
SCREENSHOT OF THE CODE: