• Курсы
  • Компилятор кода
  • Обсуждения
  • Цены
  • Teams
Menu
0

What will be the output when fn(12,30) is invoked?

int fn(int a,int b) { while(a!=b) a-=b; else b-=a; } return a; }

javarecursionprogrammingcoding
18th Dec 2019, 4:59 AM
Naman Pandey
Naman Pandey - avatar
1 ответ
+ 1
Error
18th Dec 2019, 8:03 AM
Avinesh
Avinesh - avatar

Часто задают такие вопросы?

Учитесь эффективнее, бесплатно:

  • Введение в Python

    7.1M учащихся

  • Введение в Java

    4.7M учащихся

  • Введение в C

    1.5M учащихся

  • Введение в HTML

    7.5M учащихся

Смотреть все курсы
Актуальное сегодня
Is this realistic enough?
2 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
Need friends
0 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
Web Development
0 Votes
Cybersecurity techies
3 Votes
Please complete this code.
0 Votes
Can someone please explain python for me
0 Votes
Can u learn multiple language at the same time, without misplacing the formats of each with the other
0 Votes
What's wrong with code?
0 Votes