0
In for loop how this second line works
for (int x=0; x<3; x++){ amount = (int) (amount*90/100); } System.out.println(amount);
4 ответов
+ 3
<amount> will be assigned 90% of its own value, converted as `int`.
What are you doing running that line in a loop though?
+ 2
(int)(...) - converts to integer
+ 1
The program mentioned above
I need to know where is the variable amount is declared and what is the initial value
If the initial value is 0
The final result is also 0
0
0 will be the out put naveen reddy