Computer Science, asked by Rushikrsingh, 6 months ago

From Introduction to Java .
plz solve ​

Attachments:

Answers

Answered by yesiamin6
0

Answer:

1)c=24+50=74

2)if(a>b)

{

d=a-b;

}

else

d=b-a;

3)p=(a*a)+(b*c)

Explanation:

HOPE IT HELPS YOU

DO FOLLOW FOR MORE ANSWERS/PROGRAMS

MARK AS BRAINLIEST

Answered by anindyaadhikari13
1

Answer:-

Question 1,

Given,

a=4

b=3

c=a++*6+ ++b*5+10

>> c=4*6+3*5+10

>> c=24+15+10

>> c=51

Question 2,

Using if-else, we can write like this,

if(a>b)

d=a-b;

else

d=b-a;

Question 3,

The java expression will be,

P=a*a+b*c

Or,

p=Math.pow(a, 2)+b*c;

Similar questions