int b=3,k,r;
float a=15.15,c=0
if (k==1)
{
r=(int)a/b;
system.out.println(r);
}
else
{
c=a/b;
system.out.println(c)
Answers
Answered by
1
Answer:
Explanation:
- if condition true
then r=3 so output is 3
because float type
converted to int type
- if condition false
then c =5.05
so output is 5.05.
Please mark me as brainliest
Similar questions