ICSE Class 10 Computer Applications Question 2 of 26

Operators in Java — Question 2

Back to all questions
2
Question

Question 2

Assign the value of pi (i.e., 3.142) to a variable with requisite data type.

Answer
float pi = 3.142f;