Answer:
See Explaination
Explanation:
public class testscope
{
//start of main function
public static void main(String[] args)
{
//varible declration
int i;
int x;
//loop for 10 times
for(i=0; i<10; i++)
{
//initialize value of x to 10
x = 10;
}
//the scope of variable x is visible outside of for loop
System.out.println("The value of x is: "+x);
}
}
See attachment for sample output
nb:
You can clearly see in the output of Java program the value of x is not printed and program return errors. It means the variable x declared inside for loop does not has scope outside the for loop.
Answer:
Select the Zoom tool, and then do any of the following:
<h2>#1. </h2>
Click and hold in the image to zoom in. Press Alt (Windows) or Option (Mac OS) to zoom out.
<h2>#2!</h2>
In the options bar, select Scrubby Zoom. Then drag to the left in the image to zoom out, or to the right to zoom in.
<h2>psst! pls, brailiest!</h2>
Virus such as a Trojan or Worm, and can cause network crashes.