Computer Science, asked by ankitgupta15843, 7 months ago

class Main

{  

      public static void main(String args[])

      {

          int i,j,x=0;

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

                for (j=0;j<5;j++){

                        x=(i+j-1);

                         System.out.print(x);

                          break;

                        }

             System.out.print(x);

        }

  }

Answers

Answered by prernaxalxo64
1

Answer:

the way it was so good for your loss and I am a new job I don't think it was so good night and I have to be in the morning I was a good time with you and binding and I have to do you

Answered by kartavyaguptasl
0

Answer:

The output of the given program in a Java Compiler is given as follows:

-101233

Explanation:

Java is a high-level, class-based object-oriented programming language  that is designed to have as less implementation dependencies as possible. It is a general-purpose prog. language that programmers can write once and run anywhere. This means that compiled Java code can be run on any platform that supports Java without recompiling.

Java applications are typically compiled into bytecode that can run in any Java Virtual Machine (JVM), regardless of the underlying computer architecture. Java syntax  is similar to C and C ++, but with less low-level functionality than either.

The Java Runtime Environment provides dynamic features (such as  runtime code reflections and changes) that are  not normally available in traditional compiled languages. As of 2019, Java is one of the most popular programming languages ​​used, especially in client-server web applications, with 9 million developers, according to GitHub.

Correct Question:

The given problem is incomplete and its correct counterpart is found to be as:

Find the output of the following code:

class Main

{  

   public static void main(String args[]){

       int i,j,x=0;

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

           for (j=0;j<5;j++){

               x=(i+j-1);

               System.out.print(x);

               break;

               }}

       System.out.print(x);

   }
}

#SPJ3

Similar questions
Math, 11 months ago