i never loved c before and understood nothing about c language from classes,after watching your tutorial videos i start loving programming,youe explainantion skills so good sirG .
Do you have videos you speak English? I can't understand your language. it seems helpful but i wish the videos in english or even a subtitle in english.
Sir , can you say that which loop is the best for programming.or there may be some difference between the loop.so plz discuss that difference.since I often get confused with application of loop.thank you for helping.
Sir ager app python free mai upload kartai .. App zayda paisaa kamatai.. kyu ki avii tak kissi na python ki language nahe padayee hai youtube pa aur ager ki v hai kuch khass nahe , app ka padane ka tareeqa bilkul samaj mai aata hai
*Sir ya same program* Turbo C ma 7 tak print kar rha ha Or codeblock ma 25 tak Turbo c ma ksa 25 tak print hoga ya fir nhi hoga ???? 🤔 🤔 🤔 🤔 🤔 🤔 🤔 🤔 🤔 🤔
in mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. For example, The value of 0! is 1, according to the convention for an empty product
When n=0 then while me jo condition h wo false ho jata h hence while loop me enter hi nhi krta h .... Uske bahar aajate h..... Then printf chalta h aur jase ki f=1 kiye hue h hmlg usse factorial ka value 1 print hojata h
Ashish Srivastava bhai kyuki last ma jo number ka factorial la rha ha usko bhi print kra rha ha na *variable x ka bina bhi program run hoga* Bus last ma input value nhi ayagi (jiski jarurat bhi nhi ha)
Ashish Srivastava baki dono variables par operators ho gya ha to unki value change ho gyi ha isliya unko use nhi kar sakta *isliya variable x ki jarurat padi*
factorial of 0 is 1 How? condition for the loop [n>=1] is becoming false for the first time so the loop must not run! Please explain the mechanism of programming for 0 !
see bro, since the condition is ---> loop should continue to run unless and until n>=1 and not n=0. When we took n equal to 0 to find factorial, that time the condition is not satisfied and hence loop will not run i.e. at that time there is no use of this condition and hence the value of factorial will be printed as the same i.e. equal to 1 which we already mentioned in main function (f=1;). Hope you understand ??
@@lovedeepsingh120 Okay!! Ab samjh aaya!! Thank you, friend to make me understand the concept. Lekin for -ve numbers also the same initialized value f=1 is printing, so sir should edit the program and print "Invalid number" on the output screen otherwise user will get confused...
@@starkendeavours7072 bro we all know that the factorial of -ve integer is not possible and even the user will also not input any -ve term for finding factorial so there is no need to print "Invaid number"............... Otherwise you can do it , it's your choice.
@@lovedeepsingh120 Yes, I know but sometimes if a user enters an invalid choice un-intentionally then in some cases program doesn't respond on the output screen and behaves abnormally which I observe in Turbo C and I need to forcefully end the program. To avoid those situations I think it's necessary to print these messages on the output screen.
Sir plz tell how is it showing factorial of 0 because if I enter 0 it goes in n and then statement n=1 is false so it goes out of loop. Plz reply as soon as possible
i never loved c before and understood nothing about c language from classes,after watching your tutorial videos i start loving programming,youe explainantion skills so good sirG .
exactly...
Your teaching way is different to another, it's amazing 💕😍sir
Achha hai
Great teaching. i cleared my doubt ....thank you sir
great sir, really very well explained 👍👍, thank you 🙂🙂
Thank you sir
Sir mai aapke video se bahut kuchh learn kar raha hu thank you guru g
You are my best really
Sir aapk jsa explain koi nhi kar skhta you tube per
Thanks a lot for making such a video, Sir Ji!!! God bless you.......
Nice sir
Sir U r Best among all programming tutors.
Sir you're amazing. Hats off to you!
You are very cute ❤️
Your teaching process is very unique
Do you have videos you speak English? I can't understand your language. it seems helpful but i wish the videos in english or even a subtitle in english.
sir after 33 factorial is coming out to be 0 and in between numbers sometimes negative also..
how to correct these plz help
Nice vidio sir thank you
Wow! What an explanation 👏
Good explanation sir
How is the factorial of 0 comes out to be 1 in this program?
me also same ques.
Sir , can you say that which loop is the best for programming.or there may be some difference between the loop.so plz discuss that difference.since I often get confused with application of loop.thank you for helping.
Thank you so much sir 🙏❤️
Sir ager app python free mai upload kartai ..
App zayda paisaa kamatai.. kyu ki avii tak kissi na python ki language nahe padayee hai youtube pa aur ager ki v hai kuch khass nahe , app ka padane ka tareeqa bilkul samaj mai aata hai
very nice , for searching the problems.
yea.. too good video
i have watched C,C++,DBMS,DS,JAVA .
all lec. are very very good
Very nice explanation sir..
Sir it is not valid for no above 7 ..why so...?? Chexk it
Thank you sir for explaining this.
Great job sir
Great Sir. its too good
nice work sir gg. woh b free mn koi b ni karta ha. Hats off to you sir..
Sir yahi program for loop ka use karke banaona
u doing bca
Superb explanation sir
sirji bhut bdiasya hal ho gayi thankx
Very nicely explain
Superb......👌
Really appreciate Ur efforts
*Sir ya same program*
Turbo C ma 7 tak print kar rha ha
Or codeblock ma 25 tak
Turbo c ma ksa 25 tak print hoga ya fir nhi hoga
???? 🤔 🤔 🤔 🤔 🤔 🤔 🤔 🤔 🤔 🤔
Well done
sir program is same as " calculate product of first N natural number" which also gives factorial of a number.
sir while(n>=1) hai th jab apne 0 enter kiaa th vh loop kese chlaa
You are amazing
Sandaar
👍
although value of n>=1 ,n-- then how can n reduce to zero? sir please explain
Thanks sir ❣️
Thankuuuuuuuuuuu sooooo much sir 🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🥰🥰🥰🥰
Sir mughe corly bracts nahi samgh aata hai
Thank you sir
hi sir. plz make video on program description with shamil's memory table.
you are gr8 sir thank you so much ......
Nice lecture sir jiii
Sir large number ka ksa hoga
Thanks sir
Thankyou Sir :-)
Sir why we put x=n
Plz explain
Thank you sir 😃
u doing bca
How does computer know that factorial of 0 is 1?
tq sir..😊
nice sir
sir why do you use while loop so much ?
please use for loop too
Thanx
SR krishnamurti no Ka logic Kya hoga😞samajh ni Ara plse help sr
Sir why should you dont use for loop for such kind of program
how to write fabonnaci series,factorial etc.. without scanf getc getch getchar
int main(int argc,char *argv[])
{
int n,i,f=-1,s=1,sum=0;
n=atoi(argv[1]);
for(i=0;i
int main(int argc, char *argv[])
{
int n,f=1;
n=atoi(argv[1]);
while(n
in factorial
please use the while statement as -> while(n>=1) and not while(n
IF IT IS POSSIBLE sir pls update adv java lectures.
Sir g aapki videos m volume bhot kam hai volume thoda badhao ok
problem in old videos only, see my latest content
sir factorial ka program(using loops inC),9,10,...17,18,35,..40,...ke liye Galat o/p de raha hai.Sir,How can we resolve this problem?
Turbo c ma 7 tak hi karaga
Or
Codeblock ma 25 tak
SIR G AKTU ME 70/70 DILA DIYA AAPNE
HAR HAR MAHA-DEV
yr aap mst ni mha mst ho.
sir product or factorial me kya diffrence h
HOW TO FIND FACTORIAL OF NUMBER MORE THAN 16
sir for loop ka use krke kis tarah krege
How can I try it with a for loop ?
TQ
.. explain well .
int n,f=1,i;
printf("enter number: "); scanf("%d",&n);
for(i=1;i
Super
Sir can I run the program by use of for loop e.g.for(i=1;i
sir ish wale method se agar 15 ka factorial nikalne to correct output nhi aa rha h
Thank u Sir....
Sir, 9 aur 9 Se greater number ke liye output negative or zero show ho rha h. How can I solve it??
ankur bharatpur bhai tu codeblock use kar to 25 tak hoga
Turbo c ma 7 tak hi hota ha
Thanks so much for this..
well...
oh grt sir thanku so much
how the factorial of 0 is 1 plz tell sir saurabh or anyone else i done all the thinks but not build this logic so plz explain me
Abdul Rauf mera ko bhi bta diyo bhai
in mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. For example, The value of 0! is 1, according to the convention for an empty product
When n=0 then while me jo condition h wo false ho jata h hence while loop me enter hi nhi krta h .... Uske bahar aajate h.....
Then printf chalta h aur jase ki f=1 kiye hue h hmlg usse factorial ka value 1 print hojata h
sir why do we need to put n in variable x ?
Ashish Srivastava bhai kyuki last ma jo number ka factorial la rha ha usko bhi print kra rha ha na
*variable x ka bina bhi program run hoga*
Bus last ma input value nhi ayagi (jiski jarurat bhi nhi ha)
Ashish Srivastava baki dono variables par operators ho gya ha to unki value change ho gyi ha isliya unko use nhi kar sakta *isliya variable x ki jarurat padi*
sir pascal triangle kar dijiye pls
Sir badi values ka factorial nahi nikal raha, can u help me?
Why is factorial of 0 not 0 because f=f×0 ?
Sir this program is executing till no entered is 6
tooo goood sir
can you please write it using for loop
Sir sirf 7 tk sahi hai aage wrong ans krta hai please reply kijiye
factorial of 0 is 1 How? condition for the loop [n>=1] is becoming false for the first time so the loop must not run! Please explain the mechanism of programming for 0 !
see bro, since the condition is ---> loop should continue to run unless and until n>=1 and not n=0. When we took n equal to 0 to find factorial, that time the condition is not satisfied and hence loop will not run i.e. at that time there is no use of this condition and hence the value of factorial will be printed as the same i.e. equal to 1 which we already mentioned in main function (f=1;). Hope you understand ??
@@lovedeepsingh120 Okay!! Ab samjh aaya!!
Thank you, friend to make me understand the concept. Lekin for -ve numbers also the same initialized value f=1 is printing, so sir should edit the program and print "Invalid number" on the output screen otherwise user will get confused...
@@starkendeavours7072 bro we all know that the factorial of -ve integer is not possible and even the user will also not input any -ve term for finding factorial so there is no need to print "Invaid number"...............
Otherwise you can do it , it's your choice.
@@lovedeepsingh120 Yes, I know but sometimes if a user enters an invalid choice un-intentionally then in some cases program doesn't respond on the output screen and behaves abnormally which I observe in Turbo C and I need to forcefully end the program. To avoid those situations
I think it's necessary to print these messages on the output screen.
@@starkendeavours7072 Yeah right bro👍👍 I agree😊
if n=150...den factorial =???plz give me solution.
sir why it is giving the factorial of 90 is 0
If else se kaise karenge
2-4+6-8+10-12...........n terms
Sir plz tell how is it showing factorial of 0 because if I enter 0 it goes in n and then statement n=1 is false so it goes out of loop.
Plz reply as soon as possible
sir plz explain factorial of 0
Lkn saurabh sir hame kaise pta chale, ki variable ki value ( int f=1) kha mention krni hai and kha pr nai?
Isme thora confusion ❓ hai.
f ki vakue starting me hi mention karna hai
yes, you can try without initialization but you will be coming up with some garbage values. So it's necessary to take f=1 ⚀ to initialize .
write a c program to calculate even and odd number in array.
sir while (n!=0), krk hoyga
Sir mai sabhi program ko serial wise dekhna chahta hu but aesa nahi ho pata
Sir output is false for number greater than 9... What could be the possible error
abhi suneja codeblock use kar tab 25 tak hoga