Computer Science, asked by bazigarooo, 4 months ago

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

Answer:

The variable "Average" is not declared

Explanation:

Answered by Anonymous
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