Computer Science, asked by blackpinf4ever, 10 months ago

Code for this please

Attachments:

maihuterimaa: hey!
maihuterimaa: i don't know
maihuterimaa: ask something easy
blackpinf4ever: I know the things that are easy!
maihuterimaa: ✔✔
maihuterimaa: answer my questions
maihuterimaa: asked by me
blackpinf4ever: I'll try

Answers

Answered by shrutirhea
1

class brainP

{

   public static void main(String args[])

   {

       for(int i=5;i<=1;i--)

       {

           for(int j=1;j<=5;j++)

           {

               if(j<i)

               {

                   System.out.print("");

               }

               else

               {

                   System.out.print(j);

               }

           }

           System.out.println("");

       }

   }

}


maihuterimaa: ?? what
shrutirhea: its a program
blackpinf4ever: Tnx
Anonymous: This program didn't work!
Anonymous: I got this in console.. "...Program finished with exit code 0"
Answered by BANGTANSQUAD
2

Yo Poorvi!

Here's the answer

Hope it helped!

PS:This is soo funny

Attachments:

Anonymous: nope, i was also trying to solve it but with some different approach
blackpinf4ever: Oh okay.....do u know java????
Anonymous: nope, javascript only
blackpinf4ever: Actually what's the difference btw the 2?
Anonymous: both are totally different, java is full fledged programming language, whereas JavaScript is used for making web only
blackpinf4ever: Oh okay tnx!
Anonymous: i know it's boring.. xD
blackpinf4ever: Hmm yeah!
blackpinf4ever: Sounds boring
Anonymous: hmm...
Similar questions