<span>3) .java
Let's look at the three options and see why they're right or wrong.
1) .class
This is the file extension that the java compiler used to the compiled output from the compiler. So it's the wrong answer.
2) .h
This is the file extension used for C and C++ header files. So once again, not the right answer.
3) .java
This is the correct extension for a java source file to be compiled.</span>
Smart devices is a technology trend, interest in renewable energy is a social trend, and buying solar panels and generators is a consumer trend.
Answer:
The code to this question can be given as:
code:
for(i=1;i<=n;i++) //for loop column
{
for(j=1;j<=i;j++) //for loop for rows
{
printf("*"); // print asterisks
}
printf("\n"); //line break
}
Explanation:
We know that variable i,j, and n is already declared and n variable has initialized a value. So, we write the code that is given above. In this code, we use a nested loop. In this code, we use two loops that are a loop (i)for column and j loop for rows. for print asterisks triangle we use two for loop. For that, we use two-variable (i,j) that is already declared. We assign the value in (i) loop that is 0 and checks that (i) is less than equal to n and increment of (i) by 1. In this loop, we use another loop that is (j) loop. It also starts from 1 and checks that (j) is less than equal to (i)and increment of (j) by 1. In that loop, we print asterisks end of (j) loop. In (i) loop we use ("\n") for line break end of (i) loop.
B. Queries
Queries can be fairly broad or written to focus on time frames, types of data, ranges etc.
Just wanna let you know I could be wrong but I think 4 passes