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();
}
Incomplete question. I could only infer you are possibly referring to edhesive unit 8 questions. Here are a few sample questions;
1. Where does Python start?
2. To create the body of a function, we ____________ the code.
Answer:
1. Main Section
2. Indent
Explanation:
1. It is a common rule in Python programming language when coding for for it to begin at the first part of the Main Section.
2. Indenting a code involves creating space or jumping a line away from the margin of the text dialogue box, thus the code written there becomes the body of the function.
Answer:
Use pelican, or similar heavy duty cases
Explanation:
Pelican is a brand btw. 10/10 would recommend
Answer:
the indexOf() method
Explanation:
The indexOf() method in java returns the first occurrence of the of the string or a character specified in it.It can be used to search both a character or a string.
for example:-
import java.util.*;
import java.lang.*;
import java.io.*;
class indexOf
{
public static void main (String[] args)
{
String s="IamNumber4";
int l=s.indexOf("Num");//using indexOf() method on string object..
System.out.println(l);
}
}
Output:-
3
That would be a star network. A star network isn't necessarily shaped like a star, of course, but like you mention this topology has a central device, usually a server of some sorts, and then many different endpoints coming out of that central device, such as the client computers for the server.