Program to calculate sum of first N natural numbers in C

  Рет қаралды 83,102

MySirG.com

MySirG.com

Күн бұрын

Пікірлер: 77
@pankajmandawat3805
@pankajmandawat3805 6 жыл бұрын
Thank u so much sir U have logical explanations of everything 🙏🏻
@harygaming.8805
@harygaming.8805 3 жыл бұрын
Awesome sir boht hi badhiya.boht accha samjaya maja aa gaya.
@Sakshi-ez1ly
@Sakshi-ez1ly 5 жыл бұрын
Very helpful, was able to visualize the program clearly! Thanku Sir
@sandeepgaund6399
@sandeepgaund6399 4 жыл бұрын
Your explanation method is extraordinary!!!!
@biharipakwaan
@biharipakwaan Жыл бұрын
waoo sir aap kitne achhe se samjhate h, thank u so much sir
@sujeetsanodiya2573
@sujeetsanodiya2573 Жыл бұрын
Thank you sir
@indarkumar1114
@indarkumar1114 3 жыл бұрын
Very vary helpful video sir 👏love u u r awesome 👌great 👍
@ChandanKumar-ge5eh
@ChandanKumar-ge5eh 5 жыл бұрын
thank you sir. your explanation is too good.
@Hellow_world108
@Hellow_world108 2 жыл бұрын
Thanks sir for clear my doubt and concept
@anshulsharma9135
@anshulsharma9135 3 жыл бұрын
Thanku very much sir for this video
@fakebuddy5390
@fakebuddy5390 5 жыл бұрын
Most beautifuly explained on utube ever found Hit like.
@s-linkcomputer5594
@s-linkcomputer5594 8 жыл бұрын
THANKS SIR AND MOST USEFUL ALL YOUR VIDEOS
@Nizami.
@Nizami. 3 жыл бұрын
V well explained... Tnq sir
@CEKUNALGUPTA
@CEKUNALGUPTA 3 жыл бұрын
Sab teacher 2 min. Mai raatwa ke khatam karte hai but aj apne pura ache se samjhaya hai sir Mujhe iss phele ye nahi patta hotta tha ki i kya hai
@fazalmohammed2946
@fazalmohammed2946 4 жыл бұрын
You are greatttttt sirrr always motivating 💯
@HKNAGPAL7
@HKNAGPAL7 6 жыл бұрын
Can we use generalised formula of ap i.e. N*(n+1)/2 ?
@shradhapattar6459
@shradhapattar6459 5 жыл бұрын
Thank u so much sir. It really helped a lot.
@cs48sagargaud22
@cs48sagargaud22 3 жыл бұрын
The way you dear sir explain adorable:))
@Adv_Aman_Kumar
@Adv_Aman_Kumar 6 жыл бұрын
Thanks sir
@darkhunter7457
@darkhunter7457 6 жыл бұрын
Ty sir
@sukhwarsh
@sukhwarsh 3 жыл бұрын
Very helpful sir
@seemaroy2651
@seemaroy2651 6 жыл бұрын
Thanks for video sir............ very useful video
@sumitarora6489
@sumitarora6489 7 жыл бұрын
Thank u sir it is of great help
@sumitssmartway2683
@sumitssmartway2683 2 жыл бұрын
Awsome 👍
@matter2684
@matter2684 7 жыл бұрын
Pehle me English me videos dekhta tha Kuch samajh nhi aata tha 50 percent se jyada. aap itna Accha explain karte hai. aapko ye bhi pta rehta hai ki Iss statement ke baad me kya diqqat aa sakti hai jo bhut acche brain ki n8shani hai.
@simkyarora7696
@simkyarora7696 4 жыл бұрын
mindblowing......
@AyeshaKhan-cd4kj
@AyeshaKhan-cd4kj 2 жыл бұрын
Sir thank you so much
@feelingsshare1882
@feelingsshare1882 6 жыл бұрын
Sir What will happen if I write Bode body inside the Curly braced while making sum of first N natural number
@mandishdahal5650
@mandishdahal5650 6 жыл бұрын
man gaye guru apko
@Ankit-we8ym
@Ankit-we8ym 7 жыл бұрын
sir bhaut pasand aa rhe he heartily thanks
@iamcreativity732
@iamcreativity732 5 жыл бұрын
Very nice explaination
@AnkitSingh-tz1wt
@AnkitSingh-tz1wt 4 жыл бұрын
Sir ,why body of for loop block is not in curly bracket...if we put it into curly bracket the output is changed why sir ?
@theankurshow9625
@theankurshow9625 4 жыл бұрын
Nice sir, awsmm❤️
@ankurkumar8992
@ankurkumar8992 6 жыл бұрын
sir how to design output like this 0+1=1 1+2=3 3+3=6 6+4=10 10+5=15
@iramidrees7060
@iramidrees7060 8 жыл бұрын
Thankyou sir :-)
@myaccount7499
@myaccount7499 4 жыл бұрын
Hello sir Good afternoon sir. or bahout sare prgrams dalo if else ke loops ke for c and c++ ke leye. Or plz aap comment ka reply nahi karte. plz aap reply kiya karo hamare comments ka. Thanks sir
@BrijeshKumar-un8ed
@BrijeshKumar-un8ed 6 жыл бұрын
very NYC sir thnx for u
@NeerajVerma-xe4vu
@NeerajVerma-xe4vu 3 жыл бұрын
thank u sir
@iamzeeali
@iamzeeali 8 жыл бұрын
i didn't understand why there is no braces after the curly braces? you have told that there should always be curly brackets after loop..plzz explain
@iamzeeali
@iamzeeali 8 жыл бұрын
thanks
@virusehwag9562
@virusehwag9562 6 жыл бұрын
Sir..... S=1 hein to niche 1=s+2 3=s+3 ana chahiye but only right side me apply horahi hein S ki value Left side me kuin "SUM " hein vaha bhi to value ani chahiye...... PLEASE REPLY SIR
@ritumandal4450
@ritumandal4450 3 жыл бұрын
ᴛʜᴀɴᴋꜱ ꜱɪʀ
@yanjarappak6439
@yanjarappak6439 5 жыл бұрын
Thank you sir🙏🙏🙏
@Travel_brat
@Travel_brat 6 жыл бұрын
Sir if we add first 1000 natural numbers or if n=1000 output is in negative and also not correct it shows correct answer upto n=200 in all three loops....
@mysirgdotcom
@mysirgdotcom 6 жыл бұрын
due to the range limit of variable
@shubhampatidar1814
@shubhampatidar1814 3 жыл бұрын
thanx
@govindkharol319
@govindkharol319 2 жыл бұрын
Tq sir
@amolacharya5342
@amolacharya5342 7 жыл бұрын
Sir please do more problems on pointers.
@mysirgdotcom
@mysirgdotcom 7 жыл бұрын
Visit www.mysirg.com
@meherali4073
@meherali4073 4 жыл бұрын
Sir is program me aapne "i++" kiya hai(post increment) but sir kuch website me "++i" likkha huwa hai kiw????
@starkendeavours7072
@starkendeavours7072 4 жыл бұрын
In general the priority of [post inc.< pre inc]., In this case, you can use any of them but not in every program!
@pakistan3.
@pakistan3. 7 жыл бұрын
R/sir Is it possible sum of N natrual number using only one variable?
@AnujSharma-cl6tr
@AnujSharma-cl6tr 7 жыл бұрын
main() { int a,Sum; printf("Enter a number "); scanf("%d",a); Sum=(a*a+a)/2; printf("The Sum of First N natural numbers is %d",Sum); getch(); }
@pavanmore5207
@pavanmore5207 6 жыл бұрын
What happens if we don't assign sum value?
@saleskanpurscalecare298
@saleskanpurscalecare298 7 жыл бұрын
hello sir is program m /*sum of n natural numbers*/ main() { int sum(); int i,n; printf("enter the number:"); scanf("%d",&n); for(i=1;i
@adarshranjan3090
@adarshranjan3090 5 жыл бұрын
Is getch(); not needed here?
@ankitlearningcafe
@ankitlearningcafe 7 жыл бұрын
sir agar user se Na lekar hame kudh 10 or 20 natural number ka product find karna ho
@amazingthingsinmylife4315
@amazingthingsinmylife4315 6 жыл бұрын
Sir can we use S=N*N+N
@saurabhsingh-sb3fq
@saurabhsingh-sb3fq 5 жыл бұрын
sir is program me for loop me bracket kyu nhi lagai
@kumarnitin572
@kumarnitin572 3 жыл бұрын
Ye kon log hai jo dislike pe click karte hai. Kaha se aate hai ye log. Enter liye 10min ka mooouuuuunnnnnn.
@manojpandit2081
@manojpandit2081 8 жыл бұрын
program to find the greatestno among 3 number and pass two parameter to the function
@kavyakhanna3824
@kavyakhanna3824 6 жыл бұрын
I++ what does it mean?
@mysirgdotcom
@mysirgdotcom 6 жыл бұрын
visit www.mysirg.com and watch C language videos
@Cognizant_Wala
@Cognizant_Wala 3 жыл бұрын
Sum=0; Sum+=i ; another syntax
@arshaanahmad8931
@arshaanahmad8931 7 жыл бұрын
I want this in QBASIC
@mysirgdotcom
@mysirgdotcom 7 жыл бұрын
what's the point in putting same comment multiple times ?
@DisneyToons_007
@DisneyToons_007 Жыл бұрын
Sum =0 mujhe samajh nhi aaya by default sum ke ander bhi toh kuch nhi hota toh hamesha sum=0 kyu likhte hai please
@AnujSharma-cl6tr
@AnujSharma-cl6tr 7 жыл бұрын
Sir I solved this program by using another method: main() { int a,Sum; printf("Enter a number "); scanf("%d",a); Sum=(a*a+a)/2; printf("The Sum of First N natural numbers is %d",Sum); getch(); }
@mysirgdotcom
@mysirgdotcom 7 жыл бұрын
scanf mein & operator missing hai
@mukundrathi2208
@mukundrathi2208 7 жыл бұрын
Cool, nice shortcut bro , but it can only be understood if the person knows the formula of sum of n natural numbers i.e n*(n+1)/2.
@AnujSharma-cl6tr
@AnujSharma-cl6tr 7 жыл бұрын
gadhe logo ka kam nahi hai ye samja kya
@mukundrathi2208
@mukundrathi2208 7 жыл бұрын
Anuj Sharma it's not always like that...one of my friend is studying computer with bio as his stream in 10+2 but still he loves to do coding ....
@harshitkalal2754
@harshitkalal2754 6 жыл бұрын
This is n (n+1)/2 formula of maths...
@prashantverma7312
@prashantverma7312 5 жыл бұрын
Thanks sir
@pragyas5735
@pragyas5735 4 жыл бұрын
Thank you sir
@dineshstudiostatus7580
@dineshstudiostatus7580 5 жыл бұрын
Thanks sir
Program to calculate product of first N natural numbers in C
12:56
C Program to calculate sum of first N even natural numbers Hindi
12:22
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2,4 МЛН
Sum of first N Numbers | Logical Programming in C | Naresh IT
4:55
Naresh i Technologies
Рет қаралды 46 М.
Program to calculate LCM of two numbers in C language
20:36
MySirG.com
Рет қаралды 223 М.
Program to print all prime numbers between two numbers in C
16:12
Program to find greater among three numbers in C
27:33
MySirG.com
Рет қаралды 101 М.
Program for Factorial Number in C (HINDI)
10:56
easytuts4you
Рет қаралды 365 М.
Program to calculate Factorial of a number in C
14:42
MySirG.com
Рет қаралды 134 М.
Printing first 10 odd natural numbers using loop in C language
12:48
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2,4 МЛН