What will be the output of the following Java code?

class area {

public static void main(String args[])

{

double r, pi, a;

r = 9.8;

pi = 3.14;

a = pi * r * r;

System. out. println(a);

}

}

1
301.5656
2
301
3
301.56
4
301.56560000
5
Question Not Attempted

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation