Computer Science, asked by dineshdt, 1 year ago

Write a c program to print the following pattern.
1 2 3 4 5
2 3 4 5
3 4 5
4 5
5

Answers

Answered by kvnmurty
7
#include <stdio.h>
main ()
{
   int i, j;
 
      for (i=1; i<=5; i++)  {
           for (j=i; j <= 5; j++) 
               printf("%d ", j);
           printf"\n");
      }
}

Similar questions