Computer Science, asked by Tuktuki21, 5 hours ago

Correct the errors of the given program:
class public
{
int a= 45.b=72,c=65.78;
sum= a+b; diff= c-b; System.out.println(sum,diff);
}​

Answers

Answered by samarthkrv
0

Answer

here, c is declared as an int but given the value of a double.

Explanation:

Similar questions