Find the output: [3] int n=10; while(n!=1) { if(n%2==0) n=n/2; else n=(3*n)+1; System.out.println(n); }
Answers
Answered by
1
Answer:
5
Explanation:
while condition and if condition true that's why i thik
Similar questions
Social Sciences,
1 month ago
History,
1 month ago
Social Sciences,
3 months ago
Math,
3 months ago
History,
10 months ago
Accountancy,
10 months ago
Math,
10 months ago