Computer Science, asked by solankisamanta8, 13 days ago

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 Zakir5394
1

Answer:

5

Explanation:

while condition and if condition true that's why i thik

Similar questions