πŸ“Š JAVA
Q. 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);
}
}
  • (A) 301.5656
  • (B) 301
  • (C) 301.56
  • (D) 301.56560000
πŸ’¬ Discuss
βœ… Correct Answer: (A) 301.5656

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
115
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Ram Avtar Sharma
Publisher
πŸ“ˆ
96%
Success Rate