Program to display right angled triangle of star (asterisk)

Below the program in C that will display right angled triangle of star/asterisk. The program will use for and while loop to display the star/asterisk on the screen.

Expected Output


Here is the code,

void main()
	int i, counter;
	for(i=0; i<3; i++)
		counter = 0;
		while(counter <= i){

This C Program is brought you by

You may also like...

2 Responses

  1. shanthanapandiyan says:

    for loop

  1. May 29, 2015

    […] Program in C to display right angled triangle of star (asterisk) […]

Leave a Reply

Your email address will not be published.

FREE C Programming Cheatsheet

FREE C Programming Cheatsheet


Cheatsheet for a quick glance at C programming concepts and syntax

Thank you! Check you inbox and access your cheat-sheet