12. Show the Java code to declare and allocate an array with 497 elements of type double.
13. Print i as long as i is less than 6.
Question 12
double [] arr = new double[497];
Question 13.
for(int i=0; i<6; i++){
System.out.println(i);
}
Comments
Leave a comment