Get Answers to all your Questions

header-bg qa

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 (1)

best_answer

#include <stdio.h>
main ()

   int i, j;
 
      for (i=1; i<=5; i++)  
           for (j=i; j <= 5; j++) 
               printf("0 ", j);
           printf" ");
     

Posted by

Deependra Verma

View full answer