English, asked by Bhoothumai123, 7 months ago

Rewrite the following code after correcting the errors.


class public
{
public void main(double c)
{
int a = 45;
int b = 65.45;
int sum = a + b + c;
System.out.println("Sum = ", sum);
}
}​

Answers

Answered by mrnoname19
0

Answer:

class public

{

public void main(double c)

{

int a= 45;

double b =65.45;

double sum=a+b+c;

System.out.println("The Sum is="+'sum');

}

}

Answered by itzAbhi9
0

class public

{

public void main(double c)

{

int a= 45;

double b =65.45;

double sum=a+b+c;

System.out.println("The Sum is="+'sum');

}

}

Hope it helpz

Similar questions