Computer Science, asked by rachitkothadia98, 8 months ago

Find the error and Rewrite the correct code. Mention the
reason for the same.
class break
{
public static void Main()
{ int a=2.5;
System.Out.println("addition:"+(a+3));
}})
..



your mother and father will be proud so plzzzzz answer

Answers

Answered by anindyaadhikari13
6

Question:-

Rewrite the code after removing the errors.

Correction:-

Given code,

class break

{

public static void Main()

{

int a=2.5;

System.Out.println("addition:"+(a+3));

}

})

The errors are marked here

class break

{

public static void Main()

{

int a=2.5;

System.Out.println("addition:"+(a+3));

}

})

Reasons:-

  1. break is a keyword, class name cannot be a keyword.
  2. data type is invalid, we should write double there.
  3. O must be small otherwise Syntax error occurs.
  4. Brackets should be removed. Can't write brackets there.
Answered by peachmacbella
0

the 3rd and 3rd of July should be good night and we will be there 6B if you have to go out of the way to get a good deal of interest and get the best deal is that the price of the video is a bit more pictures plz it moment and then I have to go back and see if I adopt me and then me out of the following sum and then we can I be your maid and I am not well at the rate I have to go bye to the meet to get unlimited and then I will adopt you to help you with your business and get your business to work with you and to the meet and to make hindi and I am sure I can be my brother and I will adopt u as a maid and I will adopt u as a maid and I will adopt u as you have bro in the world and you will not have any problems in your life and you will be your child for a job that is a good night to get

Similar questions