Answer:
- Code is in JAVA language. As there is no user input the logic is straightforward.
- Below is the code along with a detailed explanation of the logic.
- The class name is Print main save as file as the main class.
Explanation:
Program:-
public class Main{
public static void main(String args[]){
/* There are two for loops...
* First for loop runs from i=1 to i=9
* Second for loop runs from j=1 to j=i.
*
*/
for(int i=1;i<=9;i++){
for(int j=1;j<=i;j++){ // j loop runs from j=1 to j=i
/*Prints I and j next to each other*/
System.out.println(i+""+j);
}//for loop of j ends here
}// for loop of I ends here
}
}
Answer:
<p> tag:
The <p> tag in HTML defines a paragraph. These have both opening and closing tag. So anything mentioned within <p> and </p> is treated as a paragraph. Most browsers read a line as a paragraph even if we don’t use the closing tag i.e, </p>, but this may raise unexpected results. So, it is both a good convention and we must use the closing tag.
Syntax:
<p> Content </p>
Example:
<!DOCTYPE html>
<html>
<head>
<title>Paragraph</title>
</head>
<body>
<p>A Computer Science portal for geeks.</p>
<p>It contains well written, well thought articles.</p>
</body>
</html>
Output:
A computer Science Portal for geeks.
It contains well written, well thought articles.
It is easy to troubleshoot problems, Nodes can be added without disrupting the network, The malfunction of one workstation doesn't crash the network.
An query because his ideas are effective