Computer Applications
Assign the value of pi (i.e., 3.142) to a variable with requisite data type.
Java Operators
ICSE 2007
65 Likes
Answer
float pi = 3.142f;
Answered By
23 Likes
Related Questions
State whether the following statement is True or False :
Explicit type conversion is also known as coercion.
We have two variables x and y. Write Java statements to calculate the result of division of y by x and calculate the remainder of the division.
What are logical operators? Give an example of each.
What is an assignment operator? Give an example.