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
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
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