PHP Star triangle Pattern program Here’s a simple Java program that demonstrates how to print star triangle patterns using PHP. The PHP Star pattern is created only using for loop Program 1 <?php //Star Pyramid Size //PHP pyramid patterns $size = 8;//Rows of Pyramid for($i=1;$i<=$size;$i++){ for($j=1;$j<=$size-$i;$j++){ print (” “);//print initial spaces } for($k=1;$k<=$i;$k++){ print (“…
Tag: loops
C# program to print all prime numbers between 1 to n
C# program to print all prime numbers between 1 to n In this article, we will discuss the concept of the C# program to print all prime numbers between 1 to n In this post, we are going to learn how to write a program to find between 1 to n prime numbers and display…
Write a program for printing first n prime numbers in C#
Write a program for printing first n prime numbers in C# In this article, we will discuss the concept of the Write a program for printing first n prime numbers in C# In this post, we are going to learn how to write a program to find first n prime numbers and display the result…
C Sharp Exercise: print Pascal triangle pattern
C Sharp Exercise: print Pascal triangle pattern In this tutorial, we will discuss the title of C Sharp Exercise: print Pascal triangle pattern In this post, we are going to learn how to display the pascal triangle number pattern in C# language using for and while loop, Program to generate pascal’s triangle Program to display…
C exercise: Pascal’s triangle pattern using 2D Array
C exercise: Pascal’s triangle pattern using 2D Array In this tutorial, we will discuss the title of the C exercise: Pascal’s triangle using a 2D Array In this post, we are going to learn how to display the pascal triangle pattern using a 2D array in C language using for, while, and do-while loop C…
Pascal’s triangle in Java using 2D Array
Pascal’s triangle in Java using 2D Array In this tutorial, we will discuss the Title of Pascal’s triangle in Java using 2D Array In this post, we will learn how to write code to display the pascal triangle number pattern in Java language using 2 D array with for, while, and do-while loop Java program to…
C++ Program to generate pascal’s triangle using Array
C++ Program to generate pascal’s triangle using Array In this tutorial, we will discuss the C++ Program to generate a pascal’s triangle using the Array In this post, we are going to learn how to display the pascal triangle number pattern in C++ language using a single dim array with for, while, and do-while loop Program…
C program to generate pascal triangle using Array
C program to generate pascal triangle using Array In this tutorial, we will discuss the C program to generate a pascal triangle using an Array In this post, we are going to learn how to display the pascal triangle pattern in C language using for, while, and do-while loop C program to print pascal triangle Program…
How to write pascal triangle code in Java using arrays
How to write pascal triangle code in Java using arrays In this tutorial, we will discuss the Title of How to write pascal triangle code in Java using arrays In this post, we will learn how to write code to display pascal triangle number pattern in Java language using for, while and do-while loop Java…
C++ program to count number of vowels, consonants in a string
C++ program to count number of vowels, consonants in a string In this article, we will discuss the concept of C++ program to count number of vowels and consonants in a string In this post, we are going to learn how to write a program to count Total number of vowels and consonants in a…