Skip to content
2 marks2024

Sam executes the following program segment and the answer displayed is zero
irrespective of any non zero values are given. Name the error. How the program
can be modified to get the correct answer?
void triangle(double b, double h)
{ double a;
a = ½ * b * h;
System.out.println(“Area=”+a); }

Specimen paper · 2024 · CollegeDekho (mirror of CISCE PDF)

No answer recorded yet

Khojo Papers does not generate answers. This question will show one when a checked answer has been added, with its source stated.

Related questions

From the same topic and chapter, at a similar level.

Related questions