156. C Program to Print Reverse Triangle using Name.
How does this program work?
- This Program is used to print the reverse triangle using name.
Here is the code
#include <string.h>
int main()
{
int i,c,length;
char arr[] = "skill";
length = strlen(arr);
for (i = length; i >= 0; i--)
{
printf("\n");
for (c = 0; c < i; c++)
{
printf("%c",arr[c]);
printf(" ");
}
}
return 0;
}