From Introduction to Java .
plz solve
Attachments:
Answers
Answered by
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
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
Hindi,
3 months ago
Math,
6 months ago
Computer Science,
6 months ago
Math,
11 months ago
Social Sciences,
11 months ago
Social Sciences,
11 months ago