How many error(s) the following code has –.
class Q4
{ public static void main(String args[ ] )
{ int a=36,b=45,c=53,d;
d = = (a+b+c)/3; System.out.println(“Average=” d); } }
Answers
Answered by
1
Answer:
The variable "Average" is not declared
Explanation:
Answered by
0
Error: The value which will come for d should be assigned with an operator '=' not '==' .
class Q4
{
public static void main (String args [])
{
int a=36, b=45, c=53, d;
d = (a+b+c)/3;
System.out.println("Average =" +d);
}
}
Similar questions