Write a program if a = 12, b=8; find the value of a*=++a/6+b++%3;
Answers
Answered by
1
Answer:
Answer:
68
Explanation:
a=13
b=9 1
a=a*(++a/6+b++%3) 1 2
12*(13/6+9%3) × 6.5
12*(6.5+0) ----------
12*6.5 6 0
68 6 2 ×
--------------
6 8 . 0
-------------------
Answered by
20
Explanation :
// A program on operators
public class Result
{
public static void main (String args[ ] )
{
int a=12, b=8;
a=a*(++a/6+b++%3);
System.out.println ("The answer =" +a);
}
}
_____________________
The answer is 48.
_____________________
Similar questions