Computer Science, asked by vijaysharma85up, 11 months ago

3. 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 amannishad0512p5zxh6
13

It executes else case as k==1 is false,so else case is executed.

c=a/b;

c=15.15/3;

c=5.05;

Output :-- 5.05

Value is 5.05 as c is float variable.

Pls follow me on Instagram and brainly,I'd is on my profile.

Answered by sampurna53
3

Answer:

here is the ans

Explanation:

Thankuuu

Attachments:
Similar questions