Answer:
class TriangleNumbers
{
public static void main (String[] args)
{
for (int number = 1; number <= 10; ++number) {
int sum = 1;
System.out.print("1");
for (int summed = 2; summed <= number; ++summed) {
sum += summed;
System.out.print(" + " + Integer.toString(summed));
}
System.out.print(" = " + Integer.toString(sum) + '\n');
}
}
}
Explanation:
We need to run the code for each of the 10 lines. Each time we sum numbers from 1 to n. We start with 1, then add numbers from 2 to n (and print the operation). At the end, we always print the equals sign, the sum and a newline character.
Answer:
<h2>the answer of sols brother is correct</h2><h3>hope it helps you have a good day</h3><h2 />
Answer:
The world's oldest dress called the Tarkhan Dress is at 5,100 to 5,500 years of age.
Does that help? Or do you need something else? I can change my answer if this is not what you need! :D
Explanation:
Answer:
Geothermal energy.
Explanation:
Geothermal energy is called a renewable energy source because the water is replenished by rainfall, and the heat is continuously produced by the earth.