Answer:
public class Triangle
{
public static void main( String[] args )
{
show( 5 );
}
public static void show( int n )
{
int i,j,k;
for (i = 0; i < n - 1; i++ )
{
for (j = 0; j < i; j++ )
{
System.out.print( " " );
}
for (k = n - i; k > 0; k-- )
{
System.out.print( "* " );
}
System.out.println();
}
for (i = 0; i < n; i++ )
{
for (j = n - i; j > 1; j-- )
{
System.out.print( " " );
}
for (k = 0; k < i + 1; k++ )
{
System.out.print( "* " );
}
System.out.println();
}
Answer:
c
Explanation:
I need 20 characters in my answer so tvcogct7zr7zuruzxicfficx7t8txr8zz8rz8rxt8c8tvyovoyb9h
The type of physical drives does windows disable defragmenting, but provides another method of optimization is known as windows.
<h3>What is windows?</h3>
It should be noted that windows is a separate viewing area on a computer display screen in a system.
In this case, the type of physical drives does windows disable defragmenting, but provides another method of optimization is known as windows.
Learn more about window on:
brainly.com/question/25243683
#SPJ12
<h2>
Answer:</h2>
F = 13
<h2>
Explanation:</h2>
Given:
x = false
y = 5
z = 1
F = (4%2)+2*Y +6/2 +(z&&x)
We solve this arithmetic using the order of precedence:
<em>i. Solve the brackets first</em>
=> (4 % 2)
This means 4 modulus 2. This is the result of the remainder when 4 is divided by 2. Since there is no remainder when 4 is divided by 2, then
4 % 2 = 0
=> (z && x)
This means (1 && false). This is the result of using the AND operator. Remember that && means AND operator. This will return false (or 0) if one or both operands are false. It will return true (or 1) if both operands are true.
In this case since the right operand is a false, the result will be 0. i.e
(z && x) = (1 && false) = 0
<em>ii. Solve either the multiplication or division next whichever one comes first.</em>
=> 2 * y
This means the product of 2 and y ( = 5). This will give;
2 * y = 2 * 5 = 10
=> 6 / 2
This means the quotient of 6 and 2. This will give;
6 / 2 = 3
<em>iii. Now solve the addition by first substituting the values calculated earlier back into F.</em>
F = (4%2)+2*Y +6/2 +(z&&x)
F = 0 + 10 + 3 + 0
F = 13
Therefore, the value of F is 13