Computer Science, asked by srinjoy545, 1 year ago

solve this also,java program

Attachments:

Answers

Answered by spotifymanjaro
0

i am writing the algo in c hope you can convert it in java

for( int i=1;i<=n;i++)  // n is the number of lines

{

   for(int j=i;j>0;j--)

     {

       printf("%d ",j);   // printing the value

      }

    printf("\n");  // newline

}


spotifymanjaro: Try making the algo's yourself from next time, even if it takes more time then also if you make it yourself you will be able to understand the base of it and you will be able to make even the most complex patterns all by yourself.
Similar questions