int x=5,m=1,y=1;
do
{
m*=y;
}while(y++<=x);
System.out.println(m);
please tell the output of program
Answers
Answered by
1
Explanation:
x = x++ + ++y; (1)
y = ++x + ++y; (2)
In (1) this is the following operations to be done.
i) ++y
ii) x = x+y
iii) x ++
In (2) this is the following operations to be done.
i) x ++
ii) y++
iii) y = x + y
Similar questions