Computer Science, asked by anusmita10, 5 hours ago

Correct the errors in the given program :

Class public
{ public static void main(String args{})
{ int a=45,b=70,c=65.45;
sum=a+b;
diff=c-b;
System.out.println(sum,diff);
}
}

Answers

Answered by AshmitaSengupta
4

The correct answer

Class public

{

public static void main(String args{})

{

int a=45,b=70;

double c=65.45;

sum=a+b;

diff=c-b;

System.out.println(sum,diff);

}

}

Hope it helps

Answered by aadisinghai2008
1

Answer:

Class public

{

public static void main(String args{})

{

int a=45,b=70;

double c=65.45;

sum=a+b;

diff=c-b;

System.out.println(sum,diff);

}

}

Explanation:

Yay, do this to get full on full for this question

Similar questions