Site icon T4Tutorials.com

Print alphabet pattern JavaScript JS program with flowchart and form values entered by user

Print alphabet pattern JavaScript JS program with flowchart and form values entered by user

In this tutorial, we will learn the followings;

  1. Flowchart of program of print alphabet pattern.
  2. Print alphabet pattern program.
  3. Print alphabet pattern  program with form values entered by user. 

Flowchart of program of print alphabet pattern.

Figure: print-alphabet-pattern-JavaScript-JS-program-with-flowchart-form-values-entered-by-user

Print alphabet pattern program.

<!DOCTYPE html>
<html>
<head>
</head>
<body>

<script>
var alpha = "a";
for(var i=0; i<10; i++)
{
	for (var j=0; j<=i; j++)
	{
	
	document.write(alpha);
	}
	document.write("<br>");	
}



</script>
</body>

</html>

Print alphabet pattern  program with form values entered by user. 

	
<!DOCTYPE html>
<html>
<head>
</head>
<body>

<script>
var alpha = prompt("enter a number");
for(var i=0; i<10; i++)
{
	for (var j=0; j<=i; j++)
	{
	
	document.write(alpha);
       
	}
	document.write("<br>");	
}



</script>
</body>

</html>


 
List of All Programs of Javascript : Click Here 
.

Exit mobile version