Computer Science, asked by pallabroy6355, 1 year ago

Print following pattern in a c
9
7 9
5 7 9
3 5 7 9
1 3 5 7 9

Answers

Answered by sswaraj04
0

Answer:

Explanation:

#include <stdio.h>

int main()

{

int i,j;

for(i=0;i<5;i++)

{

int k=9-2*i;

 for(j=0;j<=i;j++)

 {

  printf("%d",k);

  k+=2;

}

printf("\n");

}}

Similar questions