Answer:
It goes like:
public class Program
{
public static void main(String[] args)
{
int j=18;
int sum=0;
for (int i =1; i<7; i++)
{
sum=sum+(i*(j-2));
j=j-2;
}
System.out.println(sum);
}
}
Explanation:
<u>Variables used: </u>
j : controls the first number in product and decreases by 2 each time the loop runs.
sum: saves the values of addition as the loop runs.
You'll need a helper variable for this, so depending on your programming language, the solution becomes:
int helper;
helper = arr[i];
arr[i] = arr[j];
arr[j] = helper;
Yes it is D like the other person said
Answer: str[0].toUpperCase();
Explanation:
str[0] is pointing to the first character of the entire string and the code str[0].toUpperCase() will convert the characters to upper case if they are in lowercase and will remain unchanged if they are already in upper case.
Based on the information given regarding how email should be written, it can be deduced that the statement is false.
<h3>
Importance of emails.</h3>
It should be noted that email is an important method that is used for communication. It's fast, cheap, and easily accessible.
People do not prefer your email as one big paragraph rather, it's important to add line breaks for new sections or paragraphs. This is essential to convey the information effectively.
In conclusion, using email us also beneficial for businesses to reach their customers.
Learn more about emails on:
brainly.com/question/24558412