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
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
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
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
@@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
idk why old videos on yt are always helpful..
I understand easily your lacture and i watch programming c regularly...
Thank you sir....
Great explain including each and every minor points 🙏
Thanks sir aap jaisa teacher ho to new born baby bhi programming seekh lega
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
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
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
Thanks sir
I solve this in python with your help.
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
hey, why u used i=1?
nice bro
Finally got it here!!❤️❤️ Thanx sir
thanks sir you made easy to understand the concept of programming
Very good explanation sir. Hats off.
Mst vdo sir
Its superb sir...
very nice logic sir .. thank you so much.
Superb explanation😄😄
sir you solved half of my problem thanx
thankyou, its really very helpful for me
Thank you sir .......
Sir Bahut achhIi h appi concept ^^^^THANKS^^^^
Please sir, make this program again with the help of recursion
thnku sir ji..
Thanks for the whole logic :)
thanks a lot sir
vry gd explanation
superb sir
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)
Sir Please provide Gauss Seidel method in c program for linear equ .lt is helpful to us
thanks sr
This is one bit difficult sir..other any alternate logic is present plz make an video sir
Sir....if the value of i=4 then 4 will print.....explain this sir
Thank u sir
Thanks a lot Sir!
Thanks
thank u so much sir
thanks sir
Which IDE?
🙏🙏🙏
Can we solve this problem by using nested for. And without using while loop..??
yes bro, even it makes your program so concise.
void main()
{
int no,i;
scanf("%d",&no);
for(i=2;i
Sir please make a program to convert a no enter by the user to it's Roman equivalent upto 100
thanks
Sir in for loop you didn't define condition of i so it become a infinite loop.
@saurabh shukla sir plz help how to write this program usinf recursion trying since 2 days not able to solve
I need this program in c++ plz make vdio sir
Sir, how to print prime factors of a number using functions??
I can help u brother
sir if we want comma after factor, and dont want comma at end, then what to do please help....
wap which takes input from 1 to 9 and print " one " ,two " .....plz send me program using switch case in java
Sir Mujhe c ki live classes karna. Chahata hu Mai lacture or programming live classes attempt karna chahta hu
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);
}
}
Sir, x>1 kyo kiya h 'for loop' me, please tell me sir 🙏🙏
Bcz humlog x ko divide kar rahe hai to har bar x ki value reduce hogi iss liye x>1
@@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
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?
Utne bade numbers k liye nhi chalega
@@anjneykumarsingh4461 ohh......thank you :)
Uske liye apko ds algo k number theory pdhna hoga
Ur doing bca?
ohh
How can I print * between numbers
Such that -
For 36
2*2*3*3
Just write printf("*"); in the next line after printf
@@tarungupta9780 what happened if i=4,(mode=0) it is not a prime number
sir factors ko descending order me kaise likhe?
i-- can help
Sir, jaise aapne 36 ka prime factor 2 2 3 3 nikala to hum 2 2 3 3 nhi 2 3 kaise print kare???
While ki jage if lga do
ye program run nhi ho rha mere me ,,,,,,
Not giving correct answer for 10, 12.....
thanks sir
Thanks