/*****************************************************
* C Program to print inverted right triangle pattern
******************************************************/
#include<stdio.h> // include stdio.h
int main()
{
int n;
printf("Enter number of lines: \n");
scanf("%d", &n);
printf("\n");
// loop for line number of lines
for(int i = n; i >= 1; i--)
{
// loop to print *
for(int j = i; j >= 1; j--)
{
printf("* ");
}
printf("\n");
}
return 0;
}