C Program to draw Left Staircase Pattern

Sample Input 1 :

5

Sample Output 1 :

    *
   **
  ***
 ****
*****

Program or Solution

				
			
					
#include<stdio.h>
int main()
{
	int i,j,k,n;
	printf("enter row size:");
	scanf("%d",&n);
	for(i=1;i<=n;i++)
	{

		for(k=1;k<=n-i;k++)
		{
			printf(" ");
		}
		for(j=1;j<=i;j++)
		{
			printf("*");
		}
		printf("\n");
	}
	return 0;
}
			
				
			

Program Explanation

Refer Video Tutorial

Comments

ubaTaeCJ
-1 OR 2+721-721-1=0+0+0+1 --
ubaTaeCJ
-1 OR 3+721-721-1=0+0+0+1 --
ubaTaeCJ
-1 OR 3*2<(0+5+721-721) --
ubaTaeCJ
-1 OR 3*2>(0+5+721-721) --
ubaTaeCJ
-1 OR 2+633-633-1=0+0+0+1
ubaTaeCJ
-1 OR 3+633-633-1=0+0+0+1
ubaTaeCJ
-1 OR 3*2<(0+5+633-633)
ubaTaeCJ
-1 OR 3*2>(0+5+633-633)
ubaTaeCJ
-1' OR 2+373-373-1=0+0+0+1 --
ubaTaeCJ
-1' OR 3+373-373-1=0+0+0+1 --
ubaTaeCJ
-1' OR 3*2<(0+5+373-373) --
ubaTaeCJ
-1' OR 3*2>(0+5+373-373) --
ubaTaeCJ
-1' OR 2+138-138-1=0+0+0+1 or 'jbjwGhsI'='
ubaTaeCJ
-1' OR 3+138-138-1=0+0+0+1 or 'jbjwGhsI'='
ubaTaeCJ
-1' OR 3*2<(0+5+138-138) or 'jbjwGhsI'='
ubaTaeCJ
-1' OR 3*2>(0+5+138-138) or 'jbjwGhsI'='
ubaTaeCJ
-1" OR 2+595-595-1=0+0+0+1 --
ubaTaeCJ
-1" OR 3+595-595-1=0+0+0+1 --
ubaTaeCJ
-1" OR 3*2<(0+5+595-595) --
ubaTaeCJ
-1" OR 3*2>(0+5+595-595) --
ubaTaeCJ
if(now()=sysdate(),sleep(15),0)
ubaTaeCJ
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
ubaTaeCJ
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
ubaTaeCJ
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
ubaTaeCJ
-1; waitfor delay '0:0:15' --
ubaTaeCJ
-1); waitfor delay '0:0:15' --
ubaTaeCJ
1 waitfor delay '0:0:15' --
ubaTaeCJ
JxotPZ4R'; waitfor delay '0:0:15' --
ubaTaeCJ
-5 OR 712=(SELECT 712 FROM PG_SLEEP(15))--
ubaTaeCJ
-5) OR 826=(SELECT 826 FROM PG_SLEEP(15))--
ubaTaeCJ
-1)) OR 332=(SELECT 332 FROM PG_SLEEP(15))--
ubaTaeCJ
139hgJuv' OR 41=(SELECT 41 FROM PG_SLEEP(15))--
ubaTaeCJ
UpMztWjj') OR 398=(SELECT 398 FROM PG_SLEEP(15))--
ubaTaeCJ
qxaPrxbH')) OR 524=(SELECT 524 FROM PG_SLEEP(15))--
ubaTaeCJ
*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
ubaTaeCJ
'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
ubaTaeCJ
1'"
ubaTaeCJ
@@2aPJi