Subscribe for more such posts..

Dear Reader...
I hope u are like my posts. If so then please don't forget to like , share and follow my blog for more such posts ,also feel free to write suggestions in the comment box given over here.

Thank you...

Search This Blog

C Program to print the given pattern.

#include <stdio.h>
void main()
{
	int row , i , j;
	
	printf("Enter the number of rows: ");
	scanf("%d" , &row );
	
	for (i = 1 ; i <= row ; ++i )
	{ 
		for ( j = 1 ; j <= i ; ++j)
		{
		printf("* ");
		}
		printf("\n");
	}
	 }

USER OUTPUT :


No comments:

Post a Comment