Do While Loop In C: C Tutorial In Hindi #13
HTML-код
- Опубликовано: 11 янв 2025
- In this C programming tutorial video, I have explained you about do while loops. I hope you are enjoying this C course in Hindi.
►This C Lecture is a part of this C Programming Course: • C Language Tutorials I...
►Source Code + Notes: codewithharry....
►Click here to subscribe - / @codewithharry
Best Hindi Videos For Learning Programming:
►Learn Python In One Video - • Learn Python In Hindi ...
►Learn JavaScript in One Video - • JavaScript Tutorial
►Learn PHP In One Video - • Learn Php In One Video...
►Machine Learning Using Python - • Machine Learning Tutor...
►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
►Advanced Python Tutorials - • Intermediate/Advanced ...
►Object Oriented Programming In Python - • Object Oriented Progra...
►Python Data Science and Big Data Tutorials - • Python Data Science an...
Follow Me On Social Media
►Website (created using Flask) - www.codewithha...
►Facebook - / codewithharry
►Instagram - / codewithharry
►Personal Facebook A/c - / geekyharis
Twitter - / haris_is_here
Bhaiya hr ek video ke end me 1 question diya kro.
Ekdm shi
🙃
you want everything spoonfed to you?
Google kia karo waha lakho questions hai vai
@@kshitijshekhar1144 bodied sumit 🤣🤣🤣
Sir maine Kaafi time Pehle C kiya tha, this time I am in PG from IIT(ISM), bahut faayda ho raha hai...Aap bahut achcha sikha rahe hai.... It's very Nice to learn from Here....
ism dhanbad??
@@mdalikhan9712 yes but right now, I m in IIT PATNA
@@Priyam233 How college changed, partial dropped or mtech?
@@invincible6230 Persued M.Tech.
Ab kis college me ho bhai @@Priyam233
Thank you so much sir! I did the multiplication table again using the do while loop statement and I got exactly what I wanted earlier but was unable to print it out. Now I can print out authentic multiplication table of any number I want!!! Thank you so much!!
Edit: it took only 16 lines of code to complete it!
May you please comment the code of multiplication table !
@@ashishredhu2379 This is without using loops.
# include
int main()
{
printf("Here, we will print the multiplication table of the number entered by you.
Please enter the number.
");
int a;
scanf("%d", &a);
printf("%d x 1 = %d
", a, a*1);
printf("%d x 2 = %d
", a, a*2);
printf("%d x 3 = %d
", a, a*3);
printf("%d x 4 = %d
", a, a*4);
printf("%d x 5 = %d
", a, a*5);
printf("%d x 6 = %d
", a, a*6);
printf("%d x 7 = %d
", a, a*7);
printf("%d x 8 = %d
", a, a*8);
printf("%d x 9 = %d
", a, a*9);
printf("%d x 10 = %d
", a, a*10);
return 0;
}
@@arandomperson5107 just use index = index +1 ; using do while loop
no use for writing this long
@@ashishredhu2379 #include
int main(){
int num,index=0;
printf("enter the number which u want multiplication table of
");
scanf("%d", &num);
do {
index=index+1;
printf("%dx%d = %d
",num,index, num*index);
}while(index
Course is going at the perfect pace ! Thank you very much for creating this course !
Great course so fast thank you so much.
far*
@@yashasviagrawal5685 Mind your own business bro. Don't forget you're talking to Saddam Hussain. If you know, you know😂
🎉❤❤❤❤❤
@Nobitaarmy007 You should ask, "Who was Saddam Hussain". He was a dictator of Pakistan who killed alot of people. You could call him 'Kim Jong Un' of pakistan lolz
I'm understanding better than college..... Thanks bde Vai🙏💕🙏💕🙏💕🙏💕
Same bruh. So glad I found these series.
//Numbers from 100 to 1
int main() {
int num, index = 100;
printf("Enter your number: ");
scanf("%d", &num);
do {
printf("%d", index);
index = index - 1;
} while (index >= num);
// want to hang vs code temporarily. just change '>' to '
thank you very much for providing this course for free, that's really great.
Harry bhai u r rock
Thank you so much for providing this great knowledge
#include
int main()
{
int num, index = 0;
printf("Enter a number
");
scanf("%d", &num);
do
{
printf("%d
", index+1);
index = index + 1;
} while (index < num);
return 0;
}
Bhaiya, aap ka padhane ka style bahot e achha h, neither slow nor fast. Keep doing great work and help the needy people like this.
Thank you so much
I'm in a BCA student ,right now I'm in 3rd semester.
There is c++ in my slaybus .
But i can't understand it because past semester university take decisions of online class.
So i think firstly I can learn C from you then I switch up on C ++
Thank you❤
From which university you belong
No learn c++ first
Then you can easily switch to c
which university you study ?
i am also bca student and in my syllabus there is c language in first year of bca .... and this man helps me alot by doing this all work ...keep going ...
Kisi ne pucha tere se 😂😂
Code to print the multiplication table of a given number is
#include
int main()
{
int num , i=0 ;
printf("Enter the number you want the multiplication table of
");
scanf("%d", &num);
printf("The multiplication table of %d is
", num);
do
{
printf("%d
", num*(i+1));
i=i+1;
} while (i
Nice bro, it's working
I tried this ques it has compiled but when I m giving a no.then no table is printed
Good but with for loop it is more easy and structured.
sir, itna acha se samjahya ki meiny apne pehly attempt mein hi multiplicaton table ka programing kr lia. with zero error....thank you so much sir
Syntax btado table ka mujhe bhi krni h
Code to print multiplication table
#include
int main(){
int a,i=1;
printf("Enter a number");
scanf("%d",&a);
do{
printf("%d
",i*a);
i++;
}
while(i
i am student b.tech 1year and iam watching c program language thanku sir jii
O bhai sahb college to bs nam ka hai ..asli gyan to aap de rhe ho🔥❤️
Bhai , Najar mt lga yaar aise, blki duaye de sir ko ki sir aise hi pdhate rahe blki zoom mae bhi aa jaye one one one padhana . lol
Bro i have one request for you
Make this course basic to advance and also tell about how we make graphics in c . And give complete knowledge about c . ❤️❤️❤️❤️
Love you bro
नहीं भाई एक दम सही और परफेक्ट टेचिंग कर रहे हैं
Bhai 3 Sal pahle q nahi mile😫. Afsos but late comes best comes. You are good teacher🙋.
Happy Teacher's Day🙏🏻
The course is amazing bhaiya .such an amazing explanation. Thank you
Are waah iske jariye badi asaani se 19 ka table likh sakte hain😄👏
Kyuki hm jitna bar v yaad krte tab bhi bhul jate the.
Very very thank you 😂😂😂🤣🤣😂🤣
Course ka pace ekdam shi hai bhaiya.
Thanks Harry Bhaiya
Code to print a multiplication table of a number:
#include
int main()
{
int a,b=0;
printf("Enter the number of which you want multiplication table:
");
scanf("%d",&a);
do
{
b = b + 1;
printf("%d x %d = %d
",a,b,a*b);
}while(b
I'll give you a little better code.
#include
int main()
{
int i, limit, index = 1;
printf("Enter the number you want multiplication table of:
");
scanf("%d", &i);
printf("Enter the limit of your multiplication table:
");
scanf("%d", &limit);
printf("The multiplication table of %d is :
", i);
do
{
printf("%d x %d = %d
", i, index, index * i);
index = index + 1;
} while (index
Going with a very nice Speed ❤️❤️
dez videos r helping a lott fr my cs exams
Brother these videos are very helpful. great
Bhai course bilkul sahi hai bas aap 10-20 practice questions ki ek file dedo jisse hum log loops ki practice kr skein.
Jaise school me ma'am bhot sare alag alag questions karati hai pattens etc. Ke
Bhai tu 2 saal baad comment kar raha hai😅
@@JayPatel_jp10 aur tu us 3 saal purane comment par reply kar raha hai
@@AwesomeCodings kyunki tu mujhe reply de sakta hai but Harry tujhe reply nahi dega🙃
I watch our videos regularly..thnx
harry bbhai you doing great job finally i understand th eflow of looops good job brother love you .... i am bca student and c language is in my syllabus ... and with your help i can succed thank you bhai love u bhai .....bhot bhot shukriya .....
Excellent video I have cleared all my doubts
Bhai Ek Video Chahiye To Learn AI Using Python!
Jaldi banata hoon bhai!
perfect solution of ex table.
#incude
int main() {int num, i=1;
printf("enter the number you want the table of
");
scanf("%d",&num);
do
{ printf("%dx%d=%d
",num,i,num*1);
i=i+1;}
while (i
Thankyou bhaiya, your explanation is superb
Thik padha rhe ho bhaiya.koi problem nahi hai.❤
Perfect course!! Thank you Harry bhai.
#include
//multiplication table using loop
int main()
{
int number;
int i=0;
printf("enter the no of which multiplication table you want
");
scanf("%d", &number);
printf("the table of %d is
",number);
do{
i=i+1;
printf("%d*%d=%d
",number,i,number*i);
}while(i
Your teaching is World best teaching for me sir😊 I am thankful for your helpful video's 🙏
this course is really helping me alot
Bhai mst video hai maine aadha course csukh liya
You are really great person sir...🙏🙏... thank you so much sir...
Bhai ek dum badhiya. Sab smjh aa rha hai abb tak. 🙏🏻
Your teaching method is great!!
its easy to understand for beginners, thank you sirji ....
हरि भाई आप मस्त तरीके से समझाते हो
We need more ques for practice 😊
Great teaching with great speed 😘😘😘
Great job..
Take love from Bangladesh
Harry bhai aap to bahut acha padate ho kash aap mere teacher hote college me
Sir , you are going with decent speed !!,you are great !!
brother can you help me with a code??
#include
/*
factorial calculator using do while
*/
int main()
{
int a, n, i = 0;
scanf("%d" , &n);
do
{
i += 1;
a = n;
a = a*(n - i);
} while (i < (n-1));
printf("%d", a);
return 0;
}
can you please tell What Im doing wrong??....
definately better than college thankyou so much
Bohot sahi course speed hai sub smajh mein aa raha hai harry bhai😇😇😇😇😇😇
Bhau complete pace neither fast nor slow
Multiplication table answer
#include
int main()
{
int num, tab = 1;
printf("Which multiplication table do you want?
", num);
scanf("%d", &num);
printf("You entered %d for multiplication table
", num);
do
{
printf("%d x %d = %d
", num, tab, num * tab);
tab = tab + 1;
} while (tab < 11);
return 0;
}
great vai
@@boxydial check this
#include
int main()
{ int i,j,index=1;
printf("enter whose table you want:
");
scanf("%d",&i);
printf("enter till what you want to multipy:
");
scanf("%d",&j);
do
{
printf("%d*%d=%d
", i,index,i*index);
index=index+1;
}
while(index
waahhh bro waahhh thank you so much bro 😀 muje samaj aaa gyaaa do while loop 🤟😁
*MULTIPLICATION CASE CODE*\\SIR YOU ARE GREAT
#include
int main()
{
int x,y,z;
y=1;
printf("Enter Number for multiplication table
");
scanf("%d",&x);
do
{
printf("%d*%d=%d
",x,y,x*y);
y=y+1;
} while (y
Output nhi arha
#include
int main()
{
int i=0, j;
printf("Enter a number which you want to obtain multiplication table
",j);
scanf("%d",&j);
do{
printf("%d
",i);
i=i+j;
}while (i
Bhayia ap bohot accha palate ho💥❤
the pace is normal understandable enough thanks
When will the condition be false?
Thank you for this course sir
sir can you make a separate video about return statement, like what's its purpose and how does it work, it was in python too during my school days and I couldn't understand its working, how's it different from print statement ?
thnks finally my loops concept is cleared👍🏻
bhaiyo harry bhai 1 M jaldi se jaldi complete karo
Bohat khub harry bhai..👌
#include
int main(int argc, char const *argv[])
{
int num, iteration = 0;
printf("--> Enter a number for its mathematical table:
");
scanf("%d", &num);
do
{
iteration++;
printf("%d * %d = %d
", num, iteration, num * iteration);
} while (iteration < 10);
return 0;
}
i changed it a bit cause i actually tried the loop at the very beginning of the video this is what i have done instead of index = 0 and making 2 objects 7:31
int ash;
printf("the number of time you want to print'ash'
");
scanf("%d", &ash);
do
{
ash = ash - 1;
printf("ash
");
} while (ash>0);
Great job Harry bhai
It was really helpful,thank you..🙏
you are teaching with good speed
Multiplication table using do while loop
#include
int main() {
int n, i=1;
printf("Enter the number you want multiplication table of :");
scanf("%d",&n);
do{
printf("%d×%d=%d
",n,i,n*i);
i +=1;
}while(i
Thanks a lot sir for this series.😊😊😍😍😍
Sir your course is perfect and explanation is very good thank you very much 💖💖💖
Sir Jitna padha hai maine utna samajh ma Aaya hai
harry bhai speed normal he kyun ke achi tara samjh me aja ta he aur maza ata he
Sir all is well going at your Platform❤❤❤ but the thing is if you helps us to solve many questions it would be more Amazing
Ekdum op ho aap harry sir
We really appreciate your efforts for making all the videos. Your videos are really very helpful to us and Thankyou soo much.
I am watching this video 2023 sir your expilattion amzing every concep Cristal and clear thanks up lot😊
Bhai spellings💀💀😂
Now even when you didn't ask us to make anything I still did :)
#include
int main() {
int TableNumber;
int MultiplyBy = 1;
printf("The table of ");
scanf("%d", &TableNumber);
do {
printf("%d X %d = %d
", TableNumber, MultiplyBy, TableNumber*MultiplyBy);
MultiplyBy = MultiplyBy + 1;
} while(MultiplyBy < 11);
return 0;
}
// Love you harry ❤❤❤❤
thanksss bahi for such an amazing cource
#include
int main()
{
int num, steps, ans;
printf("Enter the number for the multiplication table you want.
");
scanf("%d", &num);
printf("Enter the number for the steps upto which you want the table.
");
scanf("%d", &steps);
int i = 0;
do
{
i = i + 1;
printf("%d * %d = %d
", num, i, num * i);
} while (i < steps);
return 0;
}
Bhi yrr love u 😍😍😍
Best teacher
sir aap bohot achai tra se smjhate ho sir oske liy very thanks full for you but sir mera ek doubt tha ki aapne jo int main ke baad brekit me %d ka use kiya he wo kiu kiya he sir please solve my doubt
#include
int main()
{
int number, index=0;
printf("Enter the number ");
scanf("%d", &number);
do{
printf("%d
", index+1);
index=index+1;
}
while(index
You made it freaking easy
ek dam sahi padha rahe ho bhai
You r very great man!!!!!!... 😎😎😎
Course sahi speed me chal raha hain harry bhai
Koi dikkat nahi hain
completed challenge 1 to print table
#include
int main()
{
int num, a = 1;
printf("enter the table you wanna print
");
scanf("%d", &num);
do
{
printf("%d x %d = %d
", num,a, a*num);
a = a + 1;
} while (a
sir kindly make a video on analysis and design of algorithms Please
Badhia lag raha hai Harry bhai
Very nice kya sikateho bhaiyya 😍
u are teaching so very good sir and its course no fastly
my perfect tutor
Thanks Harry Bhaiya
agar printf ke andar index +1 karne ke ba
dle printf ko ( index = index + 1 )ke baad rakhe to bhi zero ke badle 1 se start hoga
Bahut badiya hary bhai osm video
Sir you are a slow talker, I watch your videos after doubling the speed.
Feels good to keep going ahead in you c programming series