Loops in One Shot | C Programming | Lecture 3 | Complete C Course

  Рет қаралды 1,743,660

College Wallah

College Wallah

Күн бұрын

Пікірлер: 2 500
@CollegeWallahbyPW
@CollegeWallahbyPW 7 ай бұрын
📗 Enroll Now in Decode Batches and become JOB READY: 📌 Python with DSA: bit.ly/4bXv5xF 📌 Java with DSA: bit.ly/49vEQkZ 📌 C++ with DSA: bit.ly/49NnNKT
@taichimashima4389
@taichimashima4389 Жыл бұрын
40:42 Problem 4 : Print the AP - 1,3,5,7,9.. upto ‘n’ terms 50:34 **Printing AP WITHOUT using MATHEMATICAL FORMULA 1:01:16 **Problem 7 : Print the AP - 100,97,94.. upto all terms which are positive 1:13:07 Problem 8 : Program to find out if given number is prime or not 1:33:10 1:38:28 Problem 9 : Print all odd numbers from 1 to 100 using CONTINUE 1:49:47 INFINITE LOOP 2:03:50 2:12:44 Problem 17 : Predict the output 8 2:13:56 Problem 18 : Predict the output 9 2:21:53 Problem 19 : Program to count digits of a given number 2:31:20 Problem 20 : Program to print sum of digits of a given number 2:39:26 Homework 7 : Program to print sum of even digits of a given number 2:40:22 Problem 21 : Program to print reverse of a given number 2:53:27 Homework 8 : Program to print sum of given number and its reverse 2:54:04 Problem 22 : Print sum of series - 1+2-3+4-5+6.. upto ‘n’ terms 3:07:40 Problem 23 : Print the factorial of given number 3:16:09 Homework 9 : Print the factorials of first ‘n’ numbers 3:21:43 Problem 25 : Print the nth fibonacci number 3:38:36 Homework 10 : Print the first ‘n’ fibonacci numbers 3:39:39 Problem 26 : Given 2 numbers ‘a’ and ‘b’ , find ‘a’ raised to the power ‘b’. 3:48:09 Problem 27 : Print all alphabet and their corresponding ASCII values 3:55:31 Homework 11 : Print all armstrong numbers between 1 and 500
@narendrasoni8071
@narendrasoni8071 11 ай бұрын
Itni mehnat kyu krta ho jab already commented hi toh😊
@AmitKumar-ec7le
@AmitKumar-ec7le 10 ай бұрын
Gajab bru
@NageshDaberao
@NageshDaberao 10 ай бұрын
Sir Excellent 👌 teaching 😊
@aaqibahmed4572
@aaqibahmed4572 9 ай бұрын
kisi ne homework solve kiya hai? please kese hoga print table of n . aur odd number wala .
@Heckvlogs
@Heckvlogs 8 ай бұрын
Comment out krde Bhai apna comment😂😂
@ProbablyRon
@ProbablyRon 9 ай бұрын
1:57:06 No output as while is already terminated in the first line.
@not_human...
@not_human... Жыл бұрын
at 1:57:21 there was a semi colon just after the condition of while statement while(i
@saurabh_ch
@saurabh_ch Жыл бұрын
Yes you got that right even I was thinking the same.
@Unfiltered2005
@Unfiltered2005 Жыл бұрын
Same here
@sachinnamdeo3746
@sachinnamdeo3746 Жыл бұрын
Yes , you got it I am thinking also
@piyu2003
@piyu2003 Жыл бұрын
53:00 can someone explain the without using maths method? Nhi samajh aaya
@alifhossain320
@alifhossain320 10 ай бұрын
yes you are right
@SoftSkillSprint
@SoftSkillSprint 2 ай бұрын
Timestamps : 00:00 Introduction 01:35 What and Why 05:53 FOR LOOP 09:50 How For Loop works 30:15 Problem 1 : Print all numbers from 1 to 100 34:56 Problem 2 : Print all even numbers from 1 to 100 37:36 Homework 1 : Print all odd numbers from 1 to 100 37:50 Problem 3 : Print the table of 19 40:07 Homework 2 : Print the table of ‘n’. Take ‘n’ input from user 40:42 Problem 4 : Print the AP - 1,3,5,7,9.. upto ‘n’ terms 47:13 Problem 5 : Print the AP - 4,7,10,13.. upto ‘n’ terms 50:34 **Printing AP WITHOUT using MATHEMATICAL FORMULA 58:28 Problem 6 : Print the GP - 1,2,4,8,16.. upto ‘n’ terms 1:00:55 Homework 3 : Print the GP - 3,12,48.. upto ‘n’ terms 1:01:16 **Problem 7 : Print the AP - 100,97,94.. upto all terms which are positive 1:10:48 Homework 4 : Print the GP - 100,50,25.. upto ‘n’ terms 1:12:42 BREAK statement 1:13:07 Problem 8 : Program to find out if given number is prime or not 1:38:16 CONTINUE statement 1:38:28 Problem 9 : Print all odd numbers from 1 to 100 using CONTINUE 1:43:41 Homework 5 : Print all even numbers from 1 to 100 using CONTINUE 1:44:15 WHILE LOOP 1:49:47 INFINITE LOOP 1:53:11 Problem 10 : Predict the output 1 1:56:34 Problem 11 : Predict the output 2 1:57:33 Problem 12 : Predict the output 3 1:58:58 Problem 13 : Predict the output 4 1:59:34 Post / Pre - Increment / Decrement operators 2:05:03 Problem 14 : Predict the output 5 2:07:31 Problem 15 : Predict the output 6 2:10:38 Problem 16 : Predict the output 7 2:12:44 Problem 17 : Predict the output 8 2:13:56 Problem 18 : Predict the output 9 2:15:55 Homework 6 : Predict the output 10 2:16:29 DO WHILE LOOP 2:21:25 Questions using Operators 2:21:53 Problem 19 : Program to count digits of a given number 2:31:20 Problem 20 : Program to print sum of digits of a given number 2:39:26 Homework 7 : Program to print sum of even digits of a given number 2:40:22 Problem 21 : Program to print reverse of a given number 2:53:27 Homework 8 : Program to print sum of given number and its reverse 2:54:04 Problem 22 : Print sum of series - 1+2-3+4-5+6.. upto ‘n’ terms 3:07:40 Problem 23 : Print the factorial of given number 3:16:09 Homework 9 : Print the factorials of first ‘n’ numbers 3:21:43 Problem 25 : Print the nth fibonacci number 3:38:36 Homework 10 : Print the first ‘n’ fibonacci numbers 3:39:39 Problem 26 : Given 2 numbers ‘a’ and ‘b’ , find ‘a’ raised to the power ‘b’. 3:48:09 Problem 27 : Print all alphabet and their corresponding ASCII values 3:55:31 Homework 11 : Print all armstrong numbers between 1 and 500
@MDPrince-e6p
@MDPrince-e6p Ай бұрын
Thank you
@shantanuagarwal3560
@shantanuagarwal3560 Ай бұрын
1:35 par prime no waala is gud , while loop do while ek dum useless do while agar condition hit bhu na karein to ek baar chala kar ke de deta hai ek no ke even ko add karna is good r=r+(n%10); r=r*10; n=n/10; 1-2+3-4 waala ques is gud fibonacci umber problem 27 hw 11
@Aysx.
@Aysx. Жыл бұрын
The amount of happiness you get after a code finally runs🙂
@Cm-zc2zx
@Cm-zc2zx Жыл бұрын
😂😂😂 yeahh fr
@rashidali-qp6ul
@rashidali-qp6ul Жыл бұрын
Excellent 👌
@rashidali-qp6ul
@rashidali-qp6ul Жыл бұрын
Well done
@priyanshubiswas9396
@priyanshubiswas9396 Жыл бұрын
fr💀
@aradhyahsharma
@aradhyahsharma 11 ай бұрын
Is infinite 😊
@malvado8267
@malvado8267 Жыл бұрын
2:53:30 store value of n in any other variable ,for example a. int a=n;
@rohitms5057
@rohitms5057 Жыл бұрын
🙏
@gujaratimotivation1338
@gujaratimotivation1338 Жыл бұрын
Thanks
@arpitb75
@arpitb75 Жыл бұрын
Thanks bhai 🙂
@aryangupta6660
@aryangupta6660 6 ай бұрын
Can you give us solution?
@AMBRATLALROOPCHANDANI
@AMBRATLALROOPCHANDANI 5 ай бұрын
@@aryangupta6660 int n; printf("enter the number "); scanf("%d",&n); int a=n; int r=0; int x; while(n!=0){ x=n%10; r=r*10; r=r+x; n=n/10; } printf("the reverse of number is %d ",r); printf("the sum of both is %d",r+a);
@sumontagarai9228
@sumontagarai9228 Жыл бұрын
1:56:48 sir in this question there is semi colon in the end of line of while so the while loop will not run . Then there will be no output
@nishantsingh3216
@nishantsingh3216 Жыл бұрын
While loop is run infinite times
@sumontagarai9228
@sumontagarai9228 Жыл бұрын
@nishantsingh3216 as there is a semi colon at the end of the while loop for that it will not run . U can check it in ur compiler.❤
@nishantsingh3216
@nishantsingh3216 Жыл бұрын
@@sumontagarai9228 it will run and it will run infinite times but nothing print.
@sumontagarai9228
@sumontagarai9228 Жыл бұрын
Yaa bro i have now seen it thanks for your cooperation.❤️
@nishantsingh3216
@nishantsingh3216 Жыл бұрын
@@sumontagarai9228 I write that code in upper comment if u write printf("%d ", i) in between while(I
@mountaingreek747
@mountaingreek747 7 ай бұрын
3:21:00 This code won't work for factorials with large values so use long long int instead! print("%lld", product).
@AjeetKumar-os5wq
@AjeetKumar-os5wq Ай бұрын
00:00 Introduction 01:35 What and Why 05:53 FOR LOOP 09:50 How For Loop works 30:15 Problem 1 : Print all numbers from 1 to 100 34:56 Problem 2 : Print all even numbers from 1 to 100 37:36 Homework 1 : Print all odd numbers from 1 to 100 37:50 Problem 3 : Print the table of 19 40:07 Homework 2 : Print the table of ‘n’. Take ‘n’ input from user 40:42 Problem 4 : Print the AP - 1,3,5,7,9.. upto ‘n’ terms 47:13 Problem 5 : Print the AP - 4,7,10,13.. upto ‘n’ terms 50:34 **Printing AP WITHOUT using MATHEMATICAL FORMULA 58:28 Problem 6 : Print the GP - 1,2,4,8,16.. upto ‘n’ terms 1:00:55 Homework 3 : Print the GP - 3,12,48.. upto ‘n’ terms 1:01:16 **Problem 7 : Print the AP - 100,97,94.. upto all terms which are positive 1:10:48 Homework 4 : Print the GP - 100,50,25.. upto ‘n’ terms 1:12:42 BREAK statement 1:13:07 Problem 8 : Program to find out if given number is prime or not 1:38:16 CONTINUE statement 1:38:28 Problem 9 : Print all odd numbers from 1 to 100 using CONTINUE 1:43:41 Homework 5 : Print all even numbers from 1 to 100 using CONTINUE 1:44:15 WHILE LOOP 1:49:47 INFINITE LOOP 1:53:11 Problem 10 : Predict the output 1 1:56:34 Problem 11 : Predict the output 2 1:57:33 Problem 12 : Predict the output 3 1:58:58 Problem 13 : Predict the output 4 1:59:34 Post / Pre - Increment / Decrement operators 2:05:03 Problem 14 : Predict the output 5 2:07:31 Problem 15 : Predict the output 6 2:10:38 Problem 16 : Predict the output 7 2:12:44 Problem 17 : Predict the output 8 2:13:56 Problem 18 : Predict the output 9 2:15:55 Homework 6 : Predict the output 10 2:16:29 DO WHILE LOOP 2:21:25 Questions using Operators 2:21:53 Problem 19 : Program to count digits of a given number 2:31:20 Problem 20 : Program to print sum of digits of a given number 2:39:26 Homework 7 : Program to print sum of even digits of a given number 2:40:22 Problem 21 : Program to print reverse of a given number 2:53:27 Homework 8 : Program to print sum of given number and its reverse 2:54:04 Problem 22 : Print sum of series - 1+2-3+4-5+6.. upto ‘n’ terms 3:07:40 Problem 23 : Print the factorial of given number 3:16:09 Homework 9 : Print the factorials of first ‘n’ numbers 3:21:43 Problem 25 : Print the nth fibonacci number 3:38:36 Homework 10 : Print the first ‘n’ fibonacci numbers 3:39:39 Problem 26 : Given 2 numbers ‘a’ and ‘b’ , find ‘a’ raised to the power ‘b’. 3:48:09 Problem 27 : Print all alphabet and their corresponding ASCII values 3:55:31 Homework 11 : Print all armstrong numbers between 1 and 500
@mohammadfaisaliqbal9967
@mohammadfaisaliqbal9967 Жыл бұрын
If you have a good mentor who can teach you in the most appropriate way then everything looks to much easy..❤
@shubhamkumar3139
@shubhamkumar3139 Жыл бұрын
bhai 2:21:25 m sir ne ki bola manvi mam ne ek lecture karwaya hai operators ke upar.........bhai vo video ka link de sakte ho bhai merko mil nahi raha hai video vo wala
@mohammadfaisaliqbal9967
@mohammadfaisaliqbal9967 Жыл бұрын
@@shubhamkumar3139Bhai i think sir janvi mam ki Java playlist ki baat kar rahe Hain..wait Karo main link send karta hoon😇
@mohammadsadiq6242
@mohammadsadiq6242 Жыл бұрын
2:21:53 Problem 19 : Program to count digits of a given number 2:31:20 Problem 20 : Program to print sum of digits of a given number 2:39:26 Homework 7 : Program to print sum of even digits of a given number 2:40:22 Problem 21 : Program to print reverse of a given number 2:53:27 Homework 8 : Program to print sum of given number and its reverse 2:54:04 Problem 22 : Print sum of series - 1+2-3+4-5+6.. upto ‘n’ terms 3:07:40 Problem 23 : Print the factorial of given number 3:16:09 Homework 9 : Print the factorials of first ‘n’ numbers 3:21:43 Problem 25 : Print the nth fibonacci number 3:38:36 Homework 10 : Print the first ‘n’ fibonacci numbers 3:39:39 Problem 26 : Given 2 numbers ‘a’ and ‘b’ , find ‘a’ raised to the power ‘b’. 3:48:09 Problem 27 : Print all alphabet and their corresponding ASCII values 3:55:31 Homework 11 : Print all armstrong numbers between 1 and 500
@anshurajvlogger
@anshurajvlogger 11 ай бұрын
Same problem bro
@SushilChauhan-293
@SushilChauhan-293 10 күн бұрын
In problem no.19 counting 9 k aage ja hi nhi rhi hai
@Rahul_Raj__
@Rahul_Raj__ Жыл бұрын
1:56:52 Yaha par while loop infinite mode me chala jayega just because of that semicolon (;) .... Infinite mode me islie jayega kyuki i ki value hamesha 1 hi rhegi aur condition ko baar baar satisfy karega i.e. 1 is always less than 10.
@chanduyadav7621
@chanduyadav7621 Жыл бұрын
Great observation
@AMBRATLALROOPCHANDANI
@AMBRATLALROOPCHANDANI 5 ай бұрын
solution of hw at 2:53:00 is int n; printf("enter the number "); scanf("%d",&n); int a=n; int r=0; int x; while(n!=0){ x=n%10; r=r*10; r=r+x; n=n/10; } printf("the reverse of number is %d ",r); printf("the sum of both is %d",r+a);
@rinkuchauhanvoice
@rinkuchauhanvoice 5 ай бұрын
Thanks for giving answer .
@AashutoshPanwar2527
@AashutoshPanwar2527 4 ай бұрын
Thanks for solution
@dhanushmaskapuri1982
@dhanushmaskapuri1982 3 ай бұрын
Y did u introduce new variable 'a'. instead of a y can't we write n like r+n instead of r+a...
@formulaswithayush4659
@formulaswithayush4659 2 ай бұрын
​@@dhanushmaskapuri1982n 0 ho gaya na bhai end me ...
@travonmascarenhas7164
@travonmascarenhas7164 2 ай бұрын
Thanks
@Arpit-cj8sm
@Arpit-cj8sm 4 ай бұрын
my answer to fibonacci include int main(){ int a=1; int b=1; int i; int n; printf("enter number of terms to print: "); scanf("%d",&n); printf("1> 1 2> 1 "); for(i=1;i
@anshulshrivastava5481
@anshulshrivastava5481 Жыл бұрын
At 2:15:46 output of the question is: x=3,y=1 x=1,y=3 x=0,y=4 x=-1,y=5
@Miratishaycle
@Miratishaycle 2 ай бұрын
x=-1 and y=5 why these got printed??? here x
@shreya5382
@shreya5382 2 ай бұрын
​@@Miratishaycle the given condition is x>=0 . Not x>0
@indhoneyyt737
@indhoneyyt737 2 жыл бұрын
Sir jaldi jaldi c language pura complete kara dijiye mid sem exam coming soon🥰❤️
@arya60
@arya60 2 жыл бұрын
Bhot bhot dhanyawad sir jii ❤️🥰👍 We can never forget the role of teachers like youuu in building our career....
@addictgamer-bn8jl
@addictgamer-bn8jl 9 ай бұрын
Sir ka name kya hai
@wildyoutuber2615
@wildyoutuber2615 6 ай бұрын
@@addictgamer-bn8jl raghav
@prajwalantapur
@prajwalantapur 9 күн бұрын
Sir 1:39:21 the question is to print odd numbers from 1 to 100 you can do like this also which is easy for (i=1;i
@MattamSujitha
@MattamSujitha 8 ай бұрын
Sir in 2nd question predict the output for while loop.. Int I=1; While(I
@himanshudeepanshusingh9894
@himanshudeepanshusingh9894 Жыл бұрын
worth it lecture to watch for freshers and even for those who just want to clear their basics !! Thank u sir...❤❤❤❤❤❤
@kumar0752
@kumar0752 Жыл бұрын
Generalized Code For Printing Reverse Of A Number : lastdigit = number % 10 ; reverse = (reverse *10) + lastdigit ; n= n/10 ;
@nishantsingh3216
@nishantsingh3216 Жыл бұрын
In this code we do not print reverse of 2000 we get 2 as answer or any number which last with zero will not work in this code. Write code for every number not for specific number.
@amardubey9714
@amardubey9714 11 ай бұрын
Sir itna saral bhasha me shikhaye pura dimak me feed ho gaya 😢😢itna egy aaj tk kisi ne nahi bataya 😢thanku so much sir❤❤🙏🙏🙏
@AjEEtSinGH_717
@AjEEtSinGH_717 4 ай бұрын
1:30:01 we can use else { printf(""It is a prime number); break; }
@Shadow-wt9xc
@Shadow-wt9xc 2 ай бұрын
Bookmark 1 : 23:48 (How loop works) Bookmark 2 : 54:40 (for loop almost finished)
@kiyaekobenzai9821
@kiyaekobenzai9821 Жыл бұрын
such a masterpiece this lecture was! sir you made each and every concept seem so easy.
@Programming_p
@Programming_p 8 ай бұрын
Semester 2 ✊
@AkshayAloriyaB22BB005
@AkshayAloriyaB22BB005 Жыл бұрын
I am student of IITJ and i have seen your video ,you provide very good content to the students to buid their career thanks for providing good code. happy coding!!
@khawaishsoni7873
@khawaishsoni7873 Жыл бұрын
nice to meet you i am from IIT BHU
@MERAZMESAAGE
@MERAZMESAAGE Жыл бұрын
I am from home After taking 2 years of gap
@harshitagarwal11oct
@harshitagarwal11oct Жыл бұрын
nice to meet you I am from IIT K
@8dsong196
@8dsong196 11 ай бұрын
I am from vit Vellore
@ManjeetSingh-xz5tc
@ManjeetSingh-xz5tc 10 ай бұрын
From VNIT Nagpur, are you people allowed a reference book in exam as here our clg is taking this subject very seriously they make such a paper that they even allow us to carry a book in the exam hall, I am just wondering what's happening in IIT
@armaan39000
@armaan39000 5 ай бұрын
1:07:29 different thing .(multiple variables in for loop) 3:51:04 what is typecasting
@abhijeetmaan3005
@abhijeetmaan3005 2 ай бұрын
2:40:16 sir my code is Int main() { Int n; Printf("enter a number:"); Scanf("%d",&n); Int a; Int sum=0; While (n!=0) { a = n%10; If (a%2==0) { Sum = sum + a; Else {sum = sum ; } n=n/10; } Printf("the sum of even digits is %d", sum) return 0; }
@samislost550
@samislost550 2 жыл бұрын
Sir Jaldi Jaldi Video Laiye Aap C Language me itna interest Bana diye hai ki wait nhi ho raha and Exam bhi hai Jan me sir So please Complete This series as soon as possible...❤️✨
@jayw698
@jayw698 2 жыл бұрын
@@RohitSingh-jg3sw learn python,, It's very easy language,, Easily samaj aa jayegi 😊,, & Then DSA bhi python me kar sakte ho,, Python & javascript is most popular language now
@samislost550
@samislost550 2 жыл бұрын
@@jayw698 but he's saying that he's in 1st year.....So what will he do in exam....Maybe C Language is 1st year syllabus
@jayw698
@jayw698 2 жыл бұрын
@@samislost550 exam ke liye pyqs dekho ,,, Jitni c language important hai utna karke nipta do,, C is important just for college exam,, You should not give much importance to college exam,, college ka syllabus prepare karne se placement nahi hoga One more suggestion- C language me tumhe coding continue nahi karni chahiye,,, iske baad c++ pe switch kar jao Reason - c++ is object oriented programming & c++ has STL library which will make data structures easy C & c++ are 80% same hai,, so switching from c to c++ is easy,,, Yeah one more thing c language me dikkat ho rahi hai to python kar sakte ho ,,
@samislost550
@samislost550 2 жыл бұрын
@@jayw698 Thank You So Much For Suggestions ❤️.....Gonna do it right now Starting to learn C++ but continuing C also.......Waise bhi sir 10 din me upload karte hai c ka to cover ho jayega.....
@jayw698
@jayw698 2 жыл бұрын
@@samislost550 👍
@learnskills1061
@learnskills1061 Жыл бұрын
Alhumdulilah complete 😍😍
@raj_creation.9835
@raj_creation.9835 8 ай бұрын
Maja aa gya sir 😊❤
@asadshaikh2896
@asadshaikh2896 9 ай бұрын
21:15:40 int x = 4 , y=0 ,z; while(x>=0){ x--; y++; if(x==0) continue; else printf(" %d%d",x,y); Sir out put is 31 22 13 -15 Because loop repeat till the x>=0
@mozahidulislamnahid2406
@mozahidulislamnahid2406 Ай бұрын
why x=-1 printing? given condition is x>=0 meaning the value of x cannot be x
@rudrakshdd1025
@rudrakshdd1025 5 ай бұрын
1:57:31....Here we would not get any output at all because there's a semicolon after while, so the code inside curly braces{} would not be executed by the compiler
@TishaSahu-m6o
@TishaSahu-m6o Жыл бұрын
You have proved that pw's lectures are best 😊.
@sahilrepuriya3205
@sahilrepuriya3205 2 жыл бұрын
what a amazing lecture sir falling in love with coding now😍
@MUSIC_MAYUR
@MUSIC_MAYUR 11 ай бұрын
The amount of happiness you get after a code finally runs🙂okay
@jawwadfarooqui2606
@jawwadfarooqui2606 4 ай бұрын
1:57:23 output will be not generated due to semicolon after while condition
@harishlimbodiya5141
@harishlimbodiya5141 2 ай бұрын
2:40:22 Problem 21 : Program to print reverse of a given number input 001 then your answer is 1
@samislost550
@samislost550 2 жыл бұрын
We want Lecture 4 Sir...Maza Aa Gaya Sir is lecture me🙌❤️
@trishitamaity3496
@trishitamaity3496 Жыл бұрын
Sir please continue this series. your teaching style is outstanding.
@lakshkumar3118
@lakshkumar3118 6 ай бұрын
Sir mst explanation very very thanks 🙏🙏🙏 kaise khu etna acha content ko dekh ke
@ShantanuGorai-qr3vo
@ShantanuGorai-qr3vo 4 ай бұрын
1:57:28 there will be no output as a semicolon ( ; ) is placed after while statement, so the while loop will not execute
@harshitaverma4530
@harshitaverma4530 5 ай бұрын
2:53:10 sir for this que i have made a different code -> while(n!=0){ lastDigit=n%10; printf("%d",lastDigit); n=n/10; } this is working properly!!
@RVINAYAK-jk6pl
@RVINAYAK-jk6pl 4 ай бұрын
same here also bro
@sabyasachisingha5996
@sabyasachisingha5996 Жыл бұрын
But sir in wap to reverse a given number 2:49:00 *If i want to reverse 120 it gives 21..and not 021* Other non zero digit are going good
@formulaswithayush4659
@formulaswithayush4659 2 ай бұрын
Same bhai 😢
@sahil-anurag
@sahil-anurag Жыл бұрын
who are from semester 1 student?
@amitpandit190
@amitpandit190 Жыл бұрын
@lifegoeson567
@lifegoeson567 Жыл бұрын
🙋
@bobysingh2101
@bobysingh2101 Жыл бұрын
Me....
@shaileshvaishwar592
@shaileshvaishwar592 Жыл бұрын
class 10😮
@U.P.S.Csapnokiudan
@U.P.S.Csapnokiudan Жыл бұрын
Bhai 10th me focus kr
@ShivanshSingh-os5nd
@ShivanshSingh-os5nd Жыл бұрын
Watched the whole lecture 🎉🎉🎉🎉 Long but up to point ❤❤
@rudraagrawal6975
@rudraagrawal6975 3 ай бұрын
In problem 18 2:14:32 tge output you told was a little wrong The output would be 3 1 1 3 0 4 -1 5
@AbhishekSharma-zv2ok
@AbhishekSharma-zv2ok 2 ай бұрын
At 2:13:57 there is a problem of predict output: according to sir output will be 3. 1. But the right answer is : 3. 1 1. 3 0. 4 -1. 5
@JayKokare
@JayKokare 2 ай бұрын
Exactly bro mera bhi wahi aya
@Rajveer-yy7ui
@Rajveer-yy7ui Жыл бұрын
Completely dependent on you for C programming. THANK YOU SIR.
@HariharSharma-q4c
@HariharSharma-q4c Жыл бұрын
Sir you are all-rounder !😊 You can teach anything whether it's the maths or any other programming language!! Really helpful!!
@HariharSharma-q4c
@HariharSharma-q4c Жыл бұрын
@gurukripakevalam195 Yeah! obviously!!👍
@BijoyPantu
@BijoyPantu Жыл бұрын
Maza aa gaya sir... And you don't need to improve yourself sir... You are really a very good teacher... Loop pura acche se samjha diya apne
@onlystudy4501
@onlystudy4501 9 ай бұрын
3:33:37 Generally the fibonacci sequence starts from 0 and 1, so we don't need to take n-2 and sum = 1. It can be done by taking a = 0 and b = 1.
@sahil_9645
@sahil_9645 3 ай бұрын
3:37:17 Sir just put i
@mountaingreek747
@mountaingreek747 7 ай бұрын
1:11:53 for those having error in this problem👇🏻 Make sure you have use printf(a=a*(1.0/2)); The issue is due to integer division. In C, when you divide two integers, the result is also an integer, and any fractional part is truncated. So (1 / 2) results in 0 rather than 0.5. Consequently, a remains unchanged since it's multiplied by 0, resulting in an infinite loop of printing 100. (Taught in Lecture 1 i guess🤔)
@knowledgegainersshorts
@knowledgegainersshorts 2 ай бұрын
thanku bro luv uuuu
@vikasshukla2170
@vikasshukla2170 Жыл бұрын
Really it is very nice to learn coding with you sir❤❤
@PramodSharma-ut9ud
@PramodSharma-ut9ud Жыл бұрын
Thank you so much sir for this amazing lecture.🙂 This lecture is very helpful for students.
@tejhimanshu
@tejhimanshu 5 ай бұрын
3:39:00 Fibonacci Series int n; printf("Enter a number: "); scanf("%d", &n); int a = 1; int b = 0; int sum = 0; int i = 1; printf("Fibonacci Series: "); while(i
@dhruviiawasthi
@dhruviiawasthi 17 күн бұрын
Program for Armstrong number
@nishit4939
@nishit4939 11 ай бұрын
2:15:48 Predict The Output 9: The Answer Will Be 3 1 1 3 0 4 -1 5. Not gonna be only 3 1.
@mozahidulislamnahid2406
@mozahidulislamnahid2406 Ай бұрын
why x=-1 printing? given condition is x>=0 meaning the value of x cannot be x
@sharma_shivanii
@sharma_shivanii 2 жыл бұрын
I'm just dealing with this subject becoz of your content and the way of teaching is commendable sir . "Aap same us feel ke satb samjhate h jis tarah hum first time kisi language ko padhte wakt feel karte hain, ek alag he world lagta h pehel baar ye sab dekh or padh kar
@Durgesh0011
@Durgesh0011 Жыл бұрын
😂sachhi me
@shiwamupadhyay791
@shiwamupadhyay791 Жыл бұрын
Best teacher for coding I have ever seen ♥️
@MahendrasinghBhadoriya-zp6ly
@MahendrasinghBhadoriya-zp6ly 5 ай бұрын
sir mai aapke video starting se dekh raha hu or muje pahle c language nahi aati thi but aapke video starting se dekhney ke baad aab muje c language learn karney mai or usse question solve karney mai bahut acha lag raha hai thank you so much sir 😁😄😇♥♥
@sayrasumiya2881
@sayrasumiya2881 5 ай бұрын
2:21:53 Problem 19 : Program to count digits of a given number--------there is problem.if n=0 then the num of digit is 1. int n,count=0; scanf("%d",&n); if(n==0){ printf("the num of digit is: 1"); } else {while(n>0){ n=n/10; count++; } printf("the num of digit is :%d",count); }
@soulrupesh5723
@soulrupesh5723 6 ай бұрын
Sir at 2:04:54 the output will be 2 1 1 because the (- - x) &(x - -) condition will give 1 output.
@AjEEtSinGH_717
@AjEEtSinGH_717 2 ай бұрын
1:57:27 the answer sir told is wrong it would not run while loop as there is semicolon
@YouTubecreator0.7
@YouTubecreator0.7 17 күн бұрын
Yes Right bro
@NeelamSharma-ub2sf
@NeelamSharma-ub2sf 2 жыл бұрын
Sir PW is the best Waiting for lecture -4👍👍
@JaydevsinhMahida
@JaydevsinhMahida 4 ай бұрын
I JUST PERFECTLY USED LOOPS : 1. JAY SHRI RAM 2. JAY SHRI RAM 3. JAY SHRI RAM 4. JAY SHRI RAM 5. JAY SHRI RAM 6. JAY SHRI RAM 7. JAY SHRI RAM 8. JAY SHRI RAM 9. JAY SHRI RAM 10. JAY SHRI RAM 11. JAY SHRI RAM 12. JAY SHRI RAM 13. JAY SHRI RAM 14. JAY SHRI RAM 15. JAY SHRI RAM 16. JAY SHRI RAM 17. JAY SHRI RAM 18. JAY SHRI RAM 19. JAY SHRI RAM 20. JAY SHRI RAM 21. JAY SHRI RAM 22. JAY SHRI RAM 23. JAY SHRI RAM 24. JAY SHRI RAM 25. JAY SHRI RAM 26. JAY SHRI RAM 27. JAY SHRI RAM 28. JAY SHRI RAM 29. JAY SHRI RAM 30. JAY SHRI RAM 31. JAY SHRI RAM 32. JAY SHRI RAM 33. JAY SHRI RAM 34. JAY SHRI RAM 35. JAY SHRI RAM 36. JAY SHRI RAM 37. JAY SHRI RAM 38. JAY SHRI RAM 39. JAY SHRI RAM 40. JAY SHRI RAM 41. JAY SHRI RAM 42. JAY SHRI RAM 43. JAY SHRI RAM 44. JAY SHRI RAM 45. JAY SHRI RAM 46. JAY SHRI RAM 47. JAY SHRI RAM 48. JAY SHRI RAM 49. JAY SHRI RAM 50. JAY SHRI RAM 51. JAY SHRI RAM 52. JAY SHRI RAM 53. JAY SHRI RAM 54. JAY SHRI RAM 55. JAY SHRI RAM 56. JAY SHRI RAM 57. JAY SHRI RAM 58. JAY SHRI RAM 59. JAY SHRI RAM 60. JAY SHRI RAM 61. JAY SHRI RAM 62. JAY SHRI RAM 63. JAY SHRI RAM 64. JAY SHRI RAM 65. JAY SHRI RAM 66. JAY SHRI RAM 67. JAY SHRI RAM 68. JAY SHRI RAM 69. JAY SHRI RAM 70. JAY SHRI RAM 71. JAY SHRI RAM 72. JAY SHRI RAM 73. JAY SHRI RAM 74. JAY SHRI RAM 75. JAY SHRI RAM 76. JAY SHRI RAM 77. JAY SHRI RAM 78. JAY SHRI RAM 79. JAY SHRI RAM 80. JAY SHRI RAM 81. JAY SHRI RAM 82. JAY SHRI RAM 83. JAY SHRI RAM 84. JAY SHRI RAM 85. JAY SHRI RAM 86. JAY SHRI RAM 87. JAY SHRI RAM 88. JAY SHRI RAM 89. JAY SHRI RAM 90. JAY SHRI RAM 91. JAY SHRI RAM 92. JAY SHRI RAM 93. JAY SHRI RAM 94. JAY SHRI RAM 95. JAY SHRI RAM 96. JAY SHRI RAM 97. JAY SHRI RAM 98. JAY SHRI RAM 99. JAY SHRI RAM 100. JAY SHRI RAM 101. JAY SHRI RAM 102. JAY SHRI RAM 103. JAY SHRI RAM 104. JAY SHRI RAM 105. JAY SHRI RAM 106. JAY SHRI RAM 107. JAY SHRI RAM 108. JAY SHRI RAM
@A-A70
@A-A70 3 ай бұрын
Bro🤦🏻
@vishnusharma2203
@vishnusharma2203 3 ай бұрын
bro and that too 108 times haha...JAY SHRI RAM
@Rahul-sw9uq
@Rahul-sw9uq 3 ай бұрын
How you use dots •
@girishgoudapatil3295
@girishgoudapatil3295 Ай бұрын
@nishit4939
@nishit4939 11 ай бұрын
1:57:00 Predict The Output: Answer is not gonna be 1 to 10. The loop becomes an infinite loop with empty terminal, i mean nothing will gonna print on the screen, Because of semi-colon after While Statment, And that while condition always becomes true
@Amrit-w1k
@Amrit-w1k 3 ай бұрын
2:40:37 _FOR OÐD SUM_ int n; printf("Enter a number:"); scanf("%d",&n); int sum = 0; int id = 0 while (n! = 0) { id = n% * 10 if(i * d% * 2! = 0) { sum=sum + id; } n = n / 10 ; } printf("The sum of even digits:%d",sum); return 0;
@nutankumari6343
@nutankumari6343 Жыл бұрын
Maza aa Gaya Sir ❤ Thank you for the amazing lecture
@prahladkhapsitamarhi6705
@prahladkhapsitamarhi6705 Жыл бұрын
Thankyou ❤️ so much sir for this lecture bcz before this lecture i have many common doubt in loop but I watch this lecture all my doubt clear 😊😊
@AbhaySingh-om3vw
@AbhaySingh-om3vw Жыл бұрын
This is a very informative lecture. Thank you sir!
@RanjeetPrajapat-l3g
@RanjeetPrajapat-l3g 11 ай бұрын
sir 1 quetion hai 1. wap to print fibonacci series(0,1,1,2,3,5,8,13,21,34,......) 2. wap to factorial of given no.
@shashwat_o28
@shashwat_o28 3 ай бұрын
37:15 que3 rem we how we can use if in loop 44:27 revise question 7 AP question 11 doubt last comment
@mrcow6531
@mrcow6531 Жыл бұрын
2:15:52 The output is- 3 1, 1 3, 0 4, -1 5 not only 3 1
@Iqmaverick
@Iqmaverick Жыл бұрын
because of garbage value of z i guess
@sahilnandy5550
@sahilnandy5550 Жыл бұрын
sir forgot to repeat the loop
@mr.techeditor8763
@mr.techeditor8763 Жыл бұрын
Yes loop will repeat again
@aishujr
@aishujr 11 ай бұрын
yes loop will repeat again
@aryansharma-qi9wd
@aryansharma-qi9wd 9 ай бұрын
hw question output is-40, 31, 22, 13, 04
@Studyislife
@Studyislife Жыл бұрын
Although I am learning Java from Manvi Ma'am...But this series is really very helpful for revision of concepts and practice of questions...Thank you so much sir for this series...
@natur613
@natur613 9 ай бұрын
Mja aa gya❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤
@annann256
@annann256 7 ай бұрын
Sir in 1:57:15 it will be an infinite loop, as there's a semicolon after while.
@AdarshSingh-tm2ir
@AdarshSingh-tm2ir 6 ай бұрын
Bhai Mera to koe output hi nahi de raha hai😂😂
@ishikasingh137
@ishikasingh137 9 ай бұрын
Thank u 😊sir for this amazing lecture ❤ Maza aa gya😁
@winsomeemerald9093
@winsomeemerald9093 Жыл бұрын
sir whole lecture is great but please make a separate lecture for switch, go to etc... miscellaneous which is important for exam point of view..
@AYUSHKUMAR-dj1jy
@AYUSHKUMAR-dj1jy Жыл бұрын
As a first year i feel that this is best and detail video on loop in the youtube and question are also good maza aaya padh ke 😃
@SumitsinhChauhan-xi3dk
@SumitsinhChauhan-xi3dk Жыл бұрын
par beta ye padh ke exam mai marks nahi ayenge marks
@varnitamishra9491
@varnitamishra9491 Жыл бұрын
​@@SumitsinhChauhan-xi3dk kyu?
@shrutisisodia5229
@shrutisisodia5229 Жыл бұрын
​@@SumitsinhChauhan-xi3dk??
@madhubera4808
@madhubera4808 9 ай бұрын
Who are now second semester? ❤and understand this lecture very easy way 💚
@yadavvishu1869
@yadavvishu1869 2 ай бұрын
Problem 25 ...if you write sum=a+b in last ...u don't have to iterate upto length n-2. It will be correct on length n....when u initialise sum= in last
@ridazaidi7995
@ridazaidi7995 8 ай бұрын
I watched many videos on KZbin, but no one explained every topic so well, sir, you explained it very well, thank you very much. ❤❤
@TheFlavorFactory-Ankita
@TheFlavorFactory-Ankita 11 ай бұрын
Sir we need a teacher like you 😀
@IshwarUpreti-rz1lj
@IshwarUpreti-rz1lj 9 ай бұрын
Kha sa ji
@omprakashkumar7078
@omprakashkumar7078 Ай бұрын
Maja aaya aap se padh kar sir❤❤❤❤❤
@kavishlad3048
@kavishlad3048 9 ай бұрын
2024 batch attendance here....❤
@IshantKumavat
@IshantKumavat 3 ай бұрын
Sir great majha aa gaya padhne ka aap bahut achcha padhate hai sir Thank you so much
@theabvpan09
@theabvpan09 3 ай бұрын
Very good video Lots of problem Solving these and understanding the logics will improve the students
@GramsOfInsta
@GramsOfInsta Жыл бұрын
Thank you sir for your efforts 💗
@Infinity-ug6uj
@Infinity-ug6uj 3 ай бұрын
Maza aa gaya Sir same C++ bhi karwao 😆😁
@BebyKumari-i5y
@BebyKumari-i5y 10 ай бұрын
Hamlog jaisa kamjor students ke liye aap jaise teacher hi ek ummid ka Kiran hote h sir Thank you so much sir ❤❤
@RockyBhai-ig3dl
@RockyBhai-ig3dl 5 ай бұрын
37:46 answer for odd numbers if(i%2==1){ printf("%d ",i); }
@amankumar-gm8ic
@amankumar-gm8ic 4 ай бұрын
use: if(i%2!=0)
@nidhiraj9686
@nidhiraj9686 2 жыл бұрын
sir maza aa gya, please bring lec4 asap and thank you so much
@aaryanyadav3732
@aaryanyadav3732 2 жыл бұрын
I am waiting .. For new lecture... 🤗🤗
@Maksood0630
@Maksood0630 Ай бұрын
Yes sir kaphi mja aaya is lecture me
@arundev5830
@arundev5830 27 күн бұрын
Who are from btech 1st year ..? If any one from 1st year then click thumbs-up
@statusyt1188
@statusyt1188 11 ай бұрын
I AM OF CLASS 10 BUT ALSO I CAN UNDERSTAND THIS PROGRAMING VIDEO RESPECT TO SIR 😍😁
@KeshavSingh-mf7ps
@KeshavSingh-mf7ps 11 ай бұрын
Bro plss focus on your studies first😢 then jump on side courses or you will end fuc.ed up your brain.. or else your choice
Pattern Printing in One Video | Lecture 4 | C Programming Series
4:02:19
College Wallah
Рет қаралды 1,3 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Arrays in One Shot | C Programming | Lecture 7
3:59:45
College Wallah
Рет қаралды 1,3 МЛН
5 Mistakes Beginner Web Developers Make (Avoid These)
12:09
CodeWithHarry
Рет қаралды 115 М.
How I would learn to code (If I could start over)
13:14
CodeWithHarry
Рет қаралды 231 М.
Алгоритмы на Python 3. Лекция №1
1:20:50
Тимофей Хирьянов
Рет қаралды 5 МЛН
2,000 People Fight For $5,000,000
24:45
MrBeast
Рет қаралды 17 МЛН
Reality of my Google Salary after TAXES
6:54
Fraz
Рет қаралды 309 М.