Answer:
A variable declaration is a name given to a memory location. It is the basic unit of storage in a program.
Answer:
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
int[] arr = {4, 6, 9, 12};
int sum = 0;
for(int i=0; i<arr.length; i++){
sum += arr[i];
}
for(int i=0; i<arr.length; i++){
System.out.print(arr[i] + " ");
}
System.out.println("");
System.out.println("The sum of the numbers: " + sum);
}
}
Explanation:
* The code is written in Java.
- Initialize the array with the given numbers
- Initialize the <em>sum</em> variable as zero
- Calculate the sum in the first for loop
- Print the numbers in the second for loop
- Print the <em>sum</em>
Answer:
Yes I do honestly : )
What about you ??
Explanation:
Hope this helped : )
Since I was the first one may i have brainiest : )
The system will move in the direction of the stronger torque
Well, it is safe to turn a computer on without a RAM, but you can't really do it. RAM is one of the essential components in computers without which you can't really use a computer. You can turn it on, however, nothing will appear on your screen and the system won't boot. So, technically, it is safe, but it won't do anything to your computer as it cannot run without RAM.