If a = 12, b=8; find the value of
a* = ++a/6 + b++ % 3;
Answers
Answered by
12
Answer:Well, its 22. Try it yourself before down voting this answer. From first term of the expression
b=a++ + ++a;
a++ means 10 but it will increase it value if it is use again.
++a means increase value of a immediately. What is value of a. It is 10, no it will change it value by 1 if it use again. So from above line its value is 11 and than increase value of a immediately its value is 12.
So value of b = 22.
Use this below code
public class Program
{
public static void main(String[] args) {
int a=10,b;
b= a++ + ++a;
System.out.println(b);
}
}
Explanation:
Answered by
46
Answer:
a*=12*(++a/6+b++%3)
=12*(13/6+8%3)
=12*(2+2)
=48
HOPE IT HELPS!!
PLZZ THANKS MY ANSWERS AND MARK ME AS BRAINLIEST
Similar questions
Social Sciences,
5 months ago
Social Sciences,
10 months ago
Science,
10 months ago
English,
1 year ago
English,
1 year ago