L61 - C program to find LCM of two numbers - Coding - TCS NQT | TCS Ninja | TCS Digital

  Рет қаралды 23,380

PacketPrep

PacketPrep

Күн бұрын

Пікірлер: 12
@bingingawaylife8405
@bingingawaylife8405 2 жыл бұрын
We should take the large number not the small number. 'Cause lcm is the large number in case the large number is divisible by the small number.
@atharvsharma6056
@atharvsharma6056 3 жыл бұрын
We can do it with with high value Which will do less iterations
@shaquibraza4340
@shaquibraza4340 3 жыл бұрын
Thanks
@suvethas286
@suvethas286 3 жыл бұрын
Sir why we give value 1 for while?
@Ashutosh_Paandey
@Ashutosh_Paandey 2 жыл бұрын
Condition true honi chahiye na
@rawatarshh_
@rawatarshh_ 3 ай бұрын
so that the loo[ will continue till its gets its values (to infinite )
@rahulranjan-cj2ii
@rahulranjan-cj2ii 5 жыл бұрын
Sir why while is 1. And why there is break. Why we use low and why low is increment. ???
@revathivakkalagadda8281
@revathivakkalagadda8281 4 жыл бұрын
low is used to generate the next multiple which must be common to both.
@harihara.t
@harihara.t 2 жыл бұрын
you can give any number except 0 inside while, It will run till it sees break statement Because any number except 0 is read as true
@sumasreem7197
@sumasreem7197 5 жыл бұрын
There is no time to comment on each and every video made by u sir as those are very easy to learn and building confidence to attempt the exam... Really Great job 👏👏👍
@kavyakalaapofficial
@kavyakalaapofficial 5 жыл бұрын
does it work for input : 0 0
@vijaykumarreddyt3287
@vijaykumarreddyt3287 5 жыл бұрын
No...it throws an ArithmeticException... / by 0
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
А что бы ты сделал? @LimbLossBoss
00:17
История одного вокалиста
Рет қаралды 10 МЛН
C Program to Find LCM of Two Numbers
3:27
Technotip
Рет қаралды 47 М.
Solve Any Pattern Question With This Trick!
57:20
Kunal Kushwaha
Рет қаралды 2,4 МЛН
C Program to calculate gcd of two numbers using recursion
10:34
Sudhakar Atchala
Рет қаралды 73 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 664 М.
C Program To Find Prime Numbers Between Range, using For Loop
5:52
Bitwise Operators: Implementation in C
16:28
gip
Рет қаралды 739