Program to print all prime factors of a number in C

  Рет қаралды 95,076

MySirG.com

MySirG.com

Күн бұрын

Like, Comments, Share and SUBSCRIBE

Пікірлер: 75
@gouravp.3851
@gouravp.3851 6 ай бұрын
idk why old videos on yt are always helpful..
@sagarjani4870
@sagarjani4870 4 жыл бұрын
Great explain including each and every minor points 🙏
@mdeesha
@mdeesha 5 жыл бұрын
I understand easily your lacture and i watch programming c regularly... Thank you sir....
@gauravkumawat5811
@gauravkumawat5811 2 жыл бұрын
Sir the way you explained this problem as well as how unique your way for writing this code was completely out of the box and it cleared my doubts. Thank You so much sir for this solution
@raunakchand5
@raunakchand5 4 жыл бұрын
Yes sir hame sir university me c language kuchh samjhh me hi nhi aiya really sir ab hame c language bahut hi simple lag raha hai kash sir ap hamare university ka professor hote ,hamne pure video approx dekh chuka hua apka ,so thanks sir
@akroshrathod5381
@akroshrathod5381 4 жыл бұрын
Thank you so much sir Mujhe c language ka kuch bhi knowledge nhi tha but aapki vajah se main aaj achhese logic build karna and implement karna sikh gaya hun. Aapki padaneki technic bohot achhi hai. Aur main aapke sare lectures attend karta hoon. Once again thank you so much sir
@BrijeshKumar-qx2bk
@BrijeshKumar-qx2bk 3 жыл бұрын
Thanks sir aap jaisa teacher ho to new born baby bhi programming seekh lega
@mehtabsingh7273
@mehtabsingh7273 2 жыл бұрын
main() { int n,i,j=1; printf("Enter Number : "); scanf("%d",&n); printf("Prime Factors "); for(i=2; n!=1; i++) { if(n%i==0) { j = n / i ; printf("%d ",i); n = j; i = 1; } } } Tried with 1 loop By the way great explanation sir
@bhaskarsonowal5457
@bhaskarsonowal5457 2 жыл бұрын
hey, why u used i=1?
@karma97652
@karma97652 Жыл бұрын
nice bro
@manjeet7595
@manjeet7595 5 жыл бұрын
Thanks sir I solve this in python with your help.
@techyworld3892
@techyworld3892 3 жыл бұрын
Finally got it here!!❤️❤️ Thanx sir
@radha_preymi
@radha_preymi 3 жыл бұрын
Mst vdo sir
@Ankit-we8ym
@Ankit-we8ym 7 жыл бұрын
thanks sir you made easy to understand the concept of programming
@vaibhavmishra3883
@vaibhavmishra3883 6 жыл бұрын
thnku sir ji..
@usmanhussainhussain2068
@usmanhussainhussain2068 8 жыл бұрын
sir you solved half of my problem thanx
@shivam_9.o652
@shivam_9.o652 3 жыл бұрын
Its superb sir...
@Abhisheksharma-ve2yg
@Abhisheksharma-ve2yg 3 жыл бұрын
Please sir, make this program again with the help of recursion
@anujsinghsomvanshi3385
@anujsinghsomvanshi3385 7 жыл бұрын
very nice logic sir .. thank you so much.
@shaheenalam152
@shaheenalam152 2 жыл бұрын
Thank you sir .......
@anubhavnegi7428
@anubhavnegi7428 5 жыл бұрын
Very good explanation sir. Hats off.
@mayagupta7546
@mayagupta7546 4 жыл бұрын
Superb explanation😄😄
@s-linkcomputer5594
@s-linkcomputer5594 8 жыл бұрын
Sir Bahut achhIi h appi concept ^^^^THANKS^^^^
@Anand-fg9gr
@Anand-fg9gr 7 жыл бұрын
vry gd explanation
@lalitmarkam9424
@lalitmarkam9424 4 жыл бұрын
thankyou, its really very helpful for me
@varunjindal7397
@varunjindal7397 8 жыл бұрын
Thanks for the whole logic :)
@bipul2138
@bipul2138 6 жыл бұрын
thanks a lot sir
@cosmopolitanguy1379
@cosmopolitanguy1379 7 жыл бұрын
what should I do so that out put shows me 5 only once. (ie. if enter 125 it should give me just 5.Not 5 5 5)
@ssssahil
@ssssahil 7 жыл бұрын
superb sir
@soumikpoddar872
@soumikpoddar872 5 жыл бұрын
Sir Please provide Gauss Seidel method in c program for linear equ .lt is helpful to us
@nitinparkash971
@nitinparkash971 4 жыл бұрын
Sir....if the value of i=4 then 4 will print.....explain this sir
@bhullarsaab9429
@bhullarsaab9429 6 жыл бұрын
Thanks
@likearollinstonem9924
@likearollinstonem9924 6 жыл бұрын
Thanks a lot Sir!
@mrkattarhindu352
@mrkattarhindu352 4 жыл бұрын
thanks sr
@sibanandaroutray7934
@sibanandaroutray7934 4 жыл бұрын
🙏🙏🙏
@IrshadKhan-zv1vy
@IrshadKhan-zv1vy 7 жыл бұрын
thanks sir
@musicbypalak_1702
@musicbypalak_1702 Жыл бұрын
Which IDE?
@sunanshibatish2933
@sunanshibatish2933 7 жыл бұрын
thank u so much sir
@noorsyed289
@noorsyed289 5 жыл бұрын
This is one bit difficult sir..other any alternate logic is present plz make an video sir
@kundan621
@kundan621 8 жыл бұрын
thanks
@akashkumaryadav1827
@akashkumaryadav1827 3 жыл бұрын
Thank u sir
@sheetal_s5153
@sheetal_s5153 4 жыл бұрын
Sir please make a program to convert a no enter by the user to it's Roman equivalent upto 100
@jaysurya9694
@jaysurya9694 2 жыл бұрын
Sir in for loop you didn't define condition of i so it become a infinite loop.
@geetramchandani1167
@geetramchandani1167 5 жыл бұрын
Can we solve this problem by using nested for. And without using while loop..??
@095__imaduddin6
@095__imaduddin6 3 жыл бұрын
yes bro, even it makes your program so concise. void main() { int no,i; scanf("%d",&no); for(i=2;i
@PankajSharma-fo8uf
@PankajSharma-fo8uf 6 жыл бұрын
Sir, how to print prime factors of a number using functions??
@tarungupta9780
@tarungupta9780 4 жыл бұрын
I can help u brother
@vivekkhatri1759
@vivekkhatri1759 4 жыл бұрын
if someone wants in single loop 👇 int N,i=2; printf("Enter the no : "); scanf("%d",&N); while(N>1) { if(N%i) i++; else { N=N/i; printf("%d ",i); } }
@ishikarajawat2229
@ishikarajawat2229 5 жыл бұрын
@saurabh shukla sir plz help how to write this program usinf recursion trying since 2 days not able to solve
@utsavsinha5578
@utsavsinha5578 7 жыл бұрын
wap which takes input from 1 to 9 and print " one " ,two " .....plz send me program using switch case in java
@ManikantGoutamReal
@ManikantGoutamReal 7 жыл бұрын
sir if we want comma after factor, and dont want comma at end, then what to do please help....
@imajaysahu
@imajaysahu 4 жыл бұрын
Sir Mujhe c ki live classes karna. Chahata hu Mai lacture or programming live classes attempt karna chahta hu
@untouchgrowth2823
@untouchgrowth2823 5 жыл бұрын
Sir, x>1 kyo kiya h 'for loop' me, please tell me sir 🙏🙏
@kashyapisingh5101
@kashyapisingh5101 5 жыл бұрын
Bcz humlog x ko divide kar rahe hai to har bar x ki value reduce hogi iss liye x>1
@yashverma4938
@yashverma4938 3 жыл бұрын
@@kashyapisingh5101 usne bola h x>1 kyu krre h ! Isliye krre h kyuki jab x=1 hoga toh 1 jo h uske prime factor todhi honge isliye 1 humhara number means x voh bada hona chahiye 1 se
@sayankumarbhakat4663
@sayankumarbhakat4663 4 жыл бұрын
while running the same program if i enter 9874 then the factors are coming as 24937,but here 4,9 are not prime numbers,why is this happening?
@anjneykumarsingh4461
@anjneykumarsingh4461 4 жыл бұрын
Utne bade numbers k liye nhi chalega
@sayankumarbhakat4663
@sayankumarbhakat4663 4 жыл бұрын
@@anjneykumarsingh4461 ohh......thank you :)
@anjneykumarsingh4461
@anjneykumarsingh4461 4 жыл бұрын
Uske liye apko ds algo k number theory pdhna hoga
@anjneykumarsingh4461
@anjneykumarsingh4461 4 жыл бұрын
Ur doing bca?
@sayankumarbhakat4663
@sayankumarbhakat4663 4 жыл бұрын
ohh
@agamnagpal2156
@agamnagpal2156 5 жыл бұрын
I need this program in c++ plz make vdio sir
@ruchipandey3634
@ruchipandey3634 6 жыл бұрын
sir factors ko descending order me kaise likhe?
@ankurkumar8992
@ankurkumar8992 6 жыл бұрын
i-- can help
@poonampanchal7872
@poonampanchal7872 5 жыл бұрын
How can I print * between numbers Such that - For 36 2*2*3*3
@tarungupta9780
@tarungupta9780 4 жыл бұрын
Just write printf("*"); in the next line after printf
@shijinrejiabraham6806
@shijinrejiabraham6806 2 жыл бұрын
@@tarungupta9780 what happened if i=4,(mode=0) it is not a prime number
@Krishnakumar-gs8mb
@Krishnakumar-gs8mb 5 жыл бұрын
Sir, jaise aapne 36 ka prime factor 2 2 3 3 nikala to hum 2 2 3 3 nhi 2 3 kaise print kare???
@varunmittal4776
@varunmittal4776 5 жыл бұрын
While ki jage if lga do
@sumitkaith6677
@sumitkaith6677 4 жыл бұрын
ye program run nhi ho rha mere me ,,,,,,
@hemlatabiradar4047
@hemlatabiradar4047 Жыл бұрын
Not giving correct answer for 10, 12.....
@kshitijvengurlekar1192
@kshitijvengurlekar1192 5 жыл бұрын
Thanks
@RavikantKumar-ec2qs
@RavikantKumar-ec2qs 7 жыл бұрын
thanks sir
Program to calculate sum of all even and odd numbers in C
13:31
MySirG.com
Рет қаралды 98 М.
Program to find greater among three numbers in C
27:33
MySirG.com
Рет қаралды 101 М.
I Took a LUNCHBAR OFF A Poster 🤯 #shorts
00:17
Wian
Рет қаралды 15 МЛН
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 7 МЛН
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 34 МЛН
C Program To Find Prime Factors of a Number using Function
8:15
Program to print first N terms of Fibonacci series in C
14:45
MySirG.com
Рет қаралды 277 М.
Program to check whether a number is Prime or not in C
18:47
MySirG.com
Рет қаралды 339 М.
Program to print N co prime numbers in C language
16:44
MySirG.com
Рет қаралды 28 М.
C Program To Calculate Sum of Digits Using Recursion
14:30
Technotip
Рет қаралды 17 М.
Program to check co prime numbers in C language
19:52
MySirG.com
Рет қаралды 42 М.
Program to print all prime numbers between two numbers in C
16:12
Winning Facebook (Meta) Hacker Cup Qual Round 2022?
53:55
Neal Wu
Рет қаралды 2,4 МЛН
I Took a LUNCHBAR OFF A Poster 🤯 #shorts
00:17
Wian
Рет қаралды 15 МЛН