This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.lang.*; | |
import java.io.*; | |
class Pattern | |
{ | |
public static void main (String[] args) throws java.lang.Exception | |
{ | |
boolean switchChar = false, reachedHeight = false; | |
int height = 9, noOfSpaces = (height - 1)/2, noOfChars = 1, i, j = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Array random and max</title> | |
</head> | |
<body> | |
<h1>Array elements are</h1> | |
<div id="random"></div> | |
<h2>Maximum number is</h2> | |
<div id="max"></div> |
NewerOlder