Program To Print All The Divisors Of A Given Number | FREE DSA Course in JAVA | Lecture 12

  Рет қаралды 8,753

TAP ACADEMY

TAP ACADEMY

Жыл бұрын

Data Structures and Algorithms Free Course (Learn DSA Without Paise) Playlist - • Data Structures And Al...
We are up with the lecture 12 of our much awaited dsa course in java.
In this lecture we will understand the logic behind printing all the divisors of a given number.
Check out the complete video to learn the logic and program for finding the divisors of a given number.
Subscribe to our channel for regular updates on the dsa course and click on the bell icon to never miss an update from our dsa course.
For more information, fill this form: forms.gle/8eiUmM92Fx563Aen9
or call us at 8884881203
Facebook: / thetapacademy
Instagram: / tapacademy_online
Linkedin: / 73820805
Website: www.thetapacademy.com​
#dsa #dsacourse #java #dsainjava #javaprogramming #coding #coder

Пікірлер: 27
@arushitandon4766
@arushitandon4766
with all due respect , sir, your voice is like music to my ears.
@yoigee
@yoigee 14 күн бұрын
for input 6 it is printing 1,2,2,3,6
@mohithnr1253
@mohithnr1253
next level teaching..........tq so much sir
@abdusselamspahiu2151
@abdusselamspahiu2151 Жыл бұрын
this video was so scientific and inclusive, liked it very much
@abhishek_______.
@abhishek_______.
sir, there's a problem in that 2nd loop statement where the numbers are iterating in reverse order, let's suppose if there is a number 90 whose factors are to be printed then in the 1st loop i will go from 1 to 9, then after coming from the 1st loop i value will become 10, now in the 2nd loop i will start from 10 and go still 1, if you divide 90/10 again 9 will get printed so basically the output is going to be like this :
@_sarthakmisal
@_sarthakmisal
Code has correction check for 20 4 repeats 2 times
@shameershamee0
@shameershamee0
Great!
@parthbadkul3524
@parthbadkul3524 Күн бұрын
but your code has a flaw for values like 6 which has ODD divisors it will duplicate the divisors
@modhugumudiushasri2330
@modhugumudiushasri2330 Жыл бұрын
thanks for the great content sir. and your teaching skills are amazing..
@arbazahmadkhan9128
@arbazahmadkhan9128 Жыл бұрын
Love to watch your video
@hrithikrudra4292
@hrithikrudra4292 Жыл бұрын
Awesome
@yesican_iwill5090
@yesican_iwill5090 Күн бұрын
this code will not work for n=20
@sreenijanarayana8468
@sreenijanarayana8468 Жыл бұрын
very good explanation sir.....but, for input:40....this logic prints 4 two times...as i in the first loop exceeds 4 and becomes 5....so initialization in the 2nd loop has to be i=i-1.
@rahulgaikwad593
@rahulgaikwad593
for 90: 9 is printing 2 times so i resolve this by adding one more condition in second for loop: if( n%i == 0 && i != n/i && i*i <= n)
@rajatmoraniya6368
@rajatmoraniya6368
for 20 it is 4*5 and 5*4
@ShivKumar-py4oe
@ShivKumar-py4oe Жыл бұрын
when will be the course complete
80 Year Olds Share Advice for Younger Self
12:22
Sprouht
Рет қаралды 1,7 МЛН
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 41 МЛН
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 29 МЛН
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 808 М.
One of the Greatest Speeches Ever | Steve Jobs
10:31
Motivation Ark
Рет қаралды 34 МЛН
Java Tutorial for Beginners (Part 1) | TAP Academy
2:19:33
TAP ACADEMY
Рет қаралды 117 М.
How I Built My LOGIC in Coding... | Kiran Sir
6:58
The Kiran Academy - Java By Kiran
Рет қаралды 13 М.