#12: while Loop in C Programming | C Programming for Beginners

  Рет қаралды 202,170

Programiz

Programiz

Күн бұрын

Пікірлер: 381
@programizstudios
@programizstudios 2 жыл бұрын
🚀 Loved the tutorial? Take it further with Programiz PRO! Refine your skills, conquer coding fears, and build confidence with interactive lessons, quizzes, and challenges. Strengthen your programming foundation and master C today! 👉Start Here: bit.ly/c-master
@aderitobentoderi6429
@aderitobentoderi6429 10 ай бұрын
I was reading a programming book without understanding much, but the way she explains it is amazingly simple and easy, thank you very much, you saved my learning, now I'm more interested in programming
@Girma_Chew
@Girma_Chew 2 жыл бұрын
// Online C compiler to run C program online //The program that can display a multiplication table with decrement value using while loop. #include int main() { int number; printf("Enter the number: "); scanf("%d", &number); int count=10; while (count >= 1) { int product = count * number; printf("%d x %d = %d ", number, count, product); count = count-1; } return 0; }
@nsfw_metaMorph21
@nsfw_metaMorph21 2 жыл бұрын
I can watch these videos all day The way she explains all these ao sweetly and everything is short and 1precise thank you for this beautiful playlist👍
@jagannathnandi556
@jagannathnandi556 Жыл бұрын
Keep your focus on code 😊
@bloomcreation4578
@bloomcreation4578 Жыл бұрын
Before studying my lectures notes, I must watch these tutorials because they make my studies easy ......thanks programiz
@programizstudios
@programizstudios 3 жыл бұрын
Q. Which of the following causes an infinite loop? 1. while (1) {...} 2. int i = 3; while (i < 4) {...} 3. int i = 3 do { ...} while(i < 4) 4. All of the above
@subhajitNath0
@subhajitNath0 3 жыл бұрын
4 . All Of The Above
@Maybemiles_C
@Maybemiles_C 3 жыл бұрын
Ans.1 while(1){..} Because the condition is always true
@priteshmehta
@priteshmehta 3 жыл бұрын
4
@hurulaynmuhamedsalimcedarp5770
@hurulaynmuhamedsalimcedarp5770 3 жыл бұрын
maybe A. the first answer
@harshadatapre2133
@harshadatapre2133 3 жыл бұрын
!. while(1){...}
@AP_MusicMedia
@AP_MusicMedia 7 ай бұрын
who is here in 2024
@AniquaIbnatMir-e3b
@AniquaIbnatMir-e3b 5 ай бұрын
Me !
@LacruzRose-iq3xq
@LacruzRose-iq3xq 4 ай бұрын
Me too
@gamerxx6344
@gamerxx6344 3 ай бұрын
yeah present
@Data-s3e
@Data-s3e 2 ай бұрын
Meeeeeeeeeeeeeeeeeee!
@GastonMakembe-ml3qn
@GastonMakembe-ml3qn 2 ай бұрын
Me !
@sakthimuruganr2547
@sakthimuruganr2547 2 жыл бұрын
int main() { int number; printf("Enter the Number: "); scanf("%d", &number); int count = 10; while (count >= 1){ int product = number * count; printf("%d*%d =%d ",number,count,product); count -= 1; } return 0; }
@RavikiranM-x4h
@RavikiranM-x4h 2 ай бұрын
why you use count -= 1; ? reply plz????
@EMI-cd1vc
@EMI-cd1vc 2 ай бұрын
@@RavikiranM-x4h count -=1 is the same thing as count = count -1( and we use -1 cause now we want the multiplication from biggest to lowest)
@RavikiranM-x4h
@RavikiranM-x4h 2 ай бұрын
@@EMI-cd1vc 👍🏼
@nihatdonmzov4166
@nihatdonmzov4166 2 жыл бұрын
Your way of teaching is so beautiful. Thank you so much!
@user-nt4nm4fb3u
@user-nt4nm4fb3u 11 ай бұрын
As always great crystal clear explanation! Thank you very much for everyone who are making this happen.
@Dr.doom2122
@Dr.doom2122 2 жыл бұрын
For quiz..... To terminate the loop condition should be false and in this code value is always true hence all of these options are i finite loops... So the answer is option D
@LacruzRose-iq3xq
@LacruzRose-iq3xq 4 ай бұрын
I'm watching from Guyana 🇬🇾 and I find programming very difficult but watching your videos make it looks much simpler based on the way you explain 💯
@hdidev6880
@hdidev6880 Жыл бұрын
the best c tutorial in youtube , thanks a lot Padma 😍🙏👌
@BruceGazi
@BruceGazi 2 ай бұрын
Best tutor in programing ❤
@irambonaaime2116
@irambonaaime2116 4 ай бұрын
you have talent to explain c programming
@ucheemmanuel8466
@ucheemmanuel8466 Жыл бұрын
look you've improved me so much!!!!! i really love your channel and i just wanna say God bless you deeply!!
@siddharth840
@siddharth840 Жыл бұрын
#include int main(){ int numb; printf("Enter the number: "); scanf("%d",&numb); int count=10; while(count>=1){ int product = numb * count; count = count - 1; printf("%d ",product); } return 0; } 12:08 answer
@seabasschukwu6988
@seabasschukwu6988 Жыл бұрын
this was a harder concept to teach but you did an excellent job
@mamunsj5594
@mamunsj5594 2 жыл бұрын
#include int main(){ int num; int count = 10; printf("Enter the number you want to multiply "); scanf("%d", &num); while (count >= 1){ int value = num *count; printf ("%d*%d = %d ", num, count, value); count--; } return 0; } Thank you Padma , I'm learnign C from last day. Your teaching skill is just awesome, I'm really grateful to you .
@yunghan1754
@yunghan1754 2 ай бұрын
12:27 answer is D, cuz the variable “i” was never incremented in the code, so the condition for while loop will always be true.
@williamowusu7778
@williamowusu7778 2 жыл бұрын
Thanks I'm getting better at C
@tshedzanembilwi4572
@tshedzanembilwi4572 4 ай бұрын
2024 and here, best tutorial ever !!
@JenniferPChung
@JenniferPChung 3 ай бұрын
These are amazing! Thank you for being so incredibly clear.
@HellensAngels
@HellensAngels 9 ай бұрын
The "do {} while var;" loop is beautiful 🤩
@21pradaofficial4
@21pradaofficial4 2 жыл бұрын
Thank God for your channel and videos 💪🏽🔥🔥❤
@hridhanpatel3987
@hridhanpatel3987 3 жыл бұрын
Extremely useful lectures ❤️🔥😀 By how much time all of advanced C programming course will be completed?
@programizstudios
@programizstudios 3 жыл бұрын
We will continue the series until all the important topics are covered. So stay tuned for new episode and a lot of other resources every week. Thank you for sticking with us.
@hridhanpatel3987
@hridhanpatel3987 3 жыл бұрын
Okay great 👍 Thanks 😊
@adymainz
@adymainz 2 жыл бұрын
@@programizstudios kindly do c++,pascal,C#,java and xml totorials plz
@boramawi
@boramawi 2 жыл бұрын
12:10 #include int main() { // Write C code here int number; printf(" Enter the number: "); scanf(" %d", &number); int count = 10; while (count>=1){ int product = number*count; printf(" %d * %d = %d " , number, count, product); //Count number count =count-1; //formula } return 0; }
@faisal_tarshon
@faisal_tarshon Жыл бұрын
Thank you, you guys made c more fun and easy to understand!
@JKEmma-en7gl
@JKEmma-en7gl 2 жыл бұрын
Programming Task: #include int main() { int number; printf("Enter your number: "); scanf("%d", &number); int count = 12; while (count >= 0) { int product = number * count; printf("%d*%d = %d ", number, count, product); count = count - 1; } return 0; }
@BTS-ct1ce
@BTS-ct1ce 3 жыл бұрын
Your tone accent is Indian are you Indian? By the way you teach really well 😊 Thank you so much it helps so much!!
@amitube663
@amitube663 Жыл бұрын
#include int main (){ // multiplication table for a agiven, that prints from 10 to 1. int number; printf("Enter number: "); scanf("%d", &number); int count=10; while(count>=1){ int product=number*count; printf("%d*%d=%d ", number, count, product); count = count-1; } return 0; }
@ramjr3628
@ramjr3628 3 жыл бұрын
I am really bad at understanding difference between for,while and do while.So , please upload series of problems which can be solved efficiently only through while loop.
@nerd2544
@nerd2544 2 жыл бұрын
you need a computer science course not programming course, explained in one sentence: FOR and DO WHILE is a "pre-test" loop but WHILE DO is a "post-test" loop
@Darkness-898
@Darkness-898 7 ай бұрын
Programming Task: #include int main() { int num=9; int count=10; int product; do { product=num*count; printf("%d*%d=%d ", num, count, product); count=count-1; } while(count>=1); return 0; } Programiz Quiz Answer: Option (D) All of the above
@kk_dipper_1549
@kk_dipper_1549 Жыл бұрын
I'm sooooo thankful for u!!!! Thank you so much!!
@akshitaprajapat225
@akshitaprajapat225 3 жыл бұрын
Thank you so much ma'am This is really very helpful to me 🥰🥰🥰🥰🥰 And your accent is so understable 🙏🙏🥰🥰 Please ma'am keep doing this I'm also using that app 😊
@dom_200
@dom_200 8 ай бұрын
That was a great work done. I really enjoyed the lesson. The explanations and introductions are 100% but please the terms such as printf and scanf need some highlights for the beginners.
@shivamchauhan6404
@shivamchauhan6404 2 жыл бұрын
// Online C compiler to run C program online // C program to print reverse table of any number #include int main() { // Write C code here int number; printf("Table of: "); scanf("%d", &number); int count = 10; while(count >= 1 ){ int product = number * count; printf("%d * %d = %d ", number , count, product ); count = count - 1; } return 0; }
@gauravshrestha2718
@gauravshrestha2718 2 жыл бұрын
//C Program to print the reverse multiplication table of n #include int main(){ int num; int count=10; int multiply; printf("Enter a value: "); scanf("%d", &num); while (count>0){ multiply=num*count; printf("%d * %d = %d ", num, count, multiply); count=count-1; } return 0; }
@AkiiiMatcha
@AkiiiMatcha 2 жыл бұрын
you can actually safe some bytes by making the multiply variable local instead of global since it wont be used in other places except the one call
@dennispeter2557
@dennispeter2557 3 жыл бұрын
that cool🙏🙏 i was looking for programming help and i found your 🙌👉lec too high keep the fire burning 💥💥💥💥💥🙌🙌🙌
@sohampatra9727
@sohampatra9727 Жыл бұрын
#include int main() { int num, count, result; num = 9; count = 10; while (count >= 1){ result = num * count; printf("%d * %d = %d ", num, count, result); count = count - 1; } return 0; }
@keshavdixit08
@keshavdixit08 2 жыл бұрын
table using do while loop : #include int main() { // Write C code here int number, count, product; printf("Enter the number : "); scanf("%d",&number); count = 1; do { product = number * count; printf("%d * %d = %d ",number, count, product); count = count +1; } while (count
@alinadangol9313
@alinadangol9313 3 жыл бұрын
The presenter is beautiful.
@programizstudios
@programizstudios 3 жыл бұрын
Thankyou !
@WWhitewalker
@WWhitewalker 3 жыл бұрын
Definitely she is!! :)
@williamsigoniseigha1348
@williamsigoniseigha1348 Жыл бұрын
We know but please focus
@Zzzzzzzzz678
@Zzzzzzzzz678 11 ай бұрын
😂😂😂​@@williamsigoniseigha1348
@HellensAngels
@HellensAngels 9 ай бұрын
If I, a man, called you beautiful at work, wouldn't that be an HR nightmare? 😅 I'm saying... what about the while loop? Isn't that beautiful?
@arpitasingh779
@arpitasingh779 2 жыл бұрын
Where well explained keep uploading more lecture 🎉🎉
@Ech-chatouiMohammed
@Ech-chatouiMohammed 4 ай бұрын
great content , keep moving
@maica2476
@maica2476 Жыл бұрын
programming is really hard for me but i love learning new things
@shivamchauhan6404
@shivamchauhan6404 2 жыл бұрын
Is the answer of the quiz is option B?
@kiplangatKe
@kiplangatKe 2 жыл бұрын
#include Int main(){ Int num=9; Int count=10; While(count>=1){ Int product =count*num; Printf("%d*%d=%d , count,num,product); Count=count-1; } return 0; }
@onic9623
@onic9623 Жыл бұрын
Option D : All Of The Above ------------------------------------------------------------------------------- While : #include int main() { int num, product; int count = 10; printf("Enter A Number : "); scanf("%d", &num); while (count >= 1) { product = count * num; printf("%d*%d=%d ", count, num, product); count = count - 1; } return 0; } ---------------------------------------------------------------------------------------------------------- Do While : #include int main() { int num, product; int count = 10; printf("Enter A Number : "); scanf("%d", &num); do { product = count * num; printf("%d*%d=%d ", count, num, product); count = count - 1; } while (count >= 1); return 0; }
@samadhandudhal7046
@samadhandudhal7046 3 жыл бұрын
Upload all lecture as early as possible
@b7sh_b7sh
@b7sh_b7sh Жыл бұрын
amazing teacher😍
@dkgamingHD211
@dkgamingHD211 9 ай бұрын
This is a correct code!! #include int main(){ int number = 9, count = 10, product; while(count 0){ product = number * count; printf("%d*%d = %d ", number, count, product); count = count - 1; } return 0; }
@sirishasaragadam7603
@sirishasaragadam7603 3 жыл бұрын
Thank you mam☺
@meriemETT
@meriemETT 3 ай бұрын
love this teacher
@TAMILSELVANK-hv7vu
@TAMILSELVANK-hv7vu 11 ай бұрын
Very interseted in solving the code and understanding the concepts so the code for the programming task is : #include int main() { int number; printf("Enter the number: "); scanf("%d",&number); int count=10; while(count > 1){ int product = number * count; printf("%d*%d = %d ", number,count,product); count = count - 1; } return 0; }
@HosheaAshok-Kumar
@HosheaAshok-Kumar 2 ай бұрын
thank u once again
@adymainz
@adymainz 2 жыл бұрын
kindly do c++,pascal,C#,java and xml totorials plz
@hurulaynmuhamedsalimcedarp5770
@hurulaynmuhamedsalimcedarp5770 3 жыл бұрын
I'm looking forward to your next video.
@janeezeokoye-es2qx
@janeezeokoye-es2qx Жыл бұрын
Indians have the best teachers 💯😊
@Data2watch
@Data2watch Жыл бұрын
she is Nepali
@popops3
@popops3 Жыл бұрын
Is there a reason to not declare int product outside the while loop and then only use product = number * count; ?
@randommanxe2451
@randommanxe2451 7 ай бұрын
might be a little late but you can declare your product whenever you want and can you some other variable expect product as long as you declare it
@adarshyadav1423
@adarshyadav1423 3 жыл бұрын
give us more programming tasks Like daily tasks
@programizstudios
@programizstudios 3 жыл бұрын
We really love enthusiastic learners like you Adarsh. Do complete the programming task of this tutorials and of previous videos and hopefully we will bring other tasks and challenges really soon stay tuned.
@adarshyadav1423
@adarshyadav1423 3 жыл бұрын
I want more programming questions on single topic so that it can easily remember me the codeing
@adarshyadav1423
@adarshyadav1423 3 жыл бұрын
Coding*
@ИтгэлсайханЭ
@ИтгэлсайханЭ 2 жыл бұрын
Very nice lecture. Thank you
@emmanuellegentil9930
@emmanuellegentil9930 2 жыл бұрын
Hello ma'am, I have a question!!! Can while loop be used to count and display the frequency of each character in a string in the form of descending order??
@rajavelu539
@rajavelu539 Жыл бұрын
12:27 option A
@meriemETT
@meriemETT 3 ай бұрын
love your explination
@nuetrkn
@nuetrkn 2 жыл бұрын
You are amazing 👏🙌👏
@Yukindrei
@Yukindrei 7 ай бұрын
while doing the code, i realized that count++ can be used instead of count = count + 1; to look shorter and cleaner. the same with the programming task: c-- instead of count = count - 1;.
@jordanholmes1366
@jordanholmes1366 7 ай бұрын
you can also use count+=1
@jaggadouynt3212
@jaggadouynt3212 13 күн бұрын
Thanks, All of the above (D)
@himayauwangi6767
@himayauwangi6767 2 жыл бұрын
#include int main(void) { int number, product; int count = 10; printf("Enter a number : "); scanf("%d", &number); while(count >= 1) { product = number * count; printf("%d * %d = %d ",number , count ,product); count -= 1; } return 0; }
@2ooofs
@2ooofs 2 жыл бұрын
int main(){ int num=9; int counter=10; while(counter>=1){ int result=num*counter; printf("%d * %d = %d ",num,counter,result); counter--; } }
@hurulaynmuhamedsalimcedarp5770
@hurulaynmuhamedsalimcedarp5770 3 жыл бұрын
I love your videos
@nihatdonmzov4166
@nihatdonmzov4166 2 жыл бұрын
Thank you so much!
@im-teazsohan1934
@im-teazsohan1934 6 ай бұрын
int main() { int count=10; while(count>=1){ int mul=9; int product=mul*count; printf("%d*%d=%d ",mul,count,product); count=count-1; } return 0; }
@sahalyoosuf
@sahalyoosuf Жыл бұрын
PROGRAMMING TASK : #include int main() { int a=9,b=10,c; while (b>=1) { c=a*b; printf(" %d * %d = %d",a,b,c); b=b-1; } }
@nikkunjbajaj4049
@nikkunjbajaj4049 Жыл бұрын
#include int main() { double number; printf("enter the number="); scanf("%lf",&number); double count=10; while(1
@Hassanmalik-8118
@Hassanmalik-8118 Жыл бұрын
#include int main() { // declare variables int n,m=10,o; /* print variables and take values*/ printf("number="); scanf("%d",&n); // declare loop while (m > 0){ o=m*n; printf("%dx%d=%d ",n,m,o); m--; } // printing result return 0; }here it is
@emmanuelarthur3081
@emmanuelarthur3081 2 жыл бұрын
Great video ❤
@daireosullivan1193
@daireosullivan1193 9 ай бұрын
#include int main() { int number = 9; int loopcount = 10; while (loopcount >= 1) { int result = loopcount * number; printf("%d * %d = %d ", number, loopcount, result); loopcount = --loopcount; } return 0; }
@shivamchauhan6404
@shivamchauhan6404 2 жыл бұрын
#include int main(){ int raajbhog = 1; while(raajbhog
@Vincent-g4e3v
@Vincent-g4e3v 7 күн бұрын
yooo follow instructions
@Mister.a1
@Mister.a1 Жыл бұрын
great keep going !
@mohammadabdullahaalforhad1375
@mohammadabdullahaalforhad1375 Жыл бұрын
//multiplication table print from (10-1)using while loop #include int main() { int number; printf("enter the value of number: "); scanf("%d", &number); int i=10; while (i>=1) { int product =number*i; printf("%d * %d= %d ",number,i, product); i--; } }
@P.R.Govtcollegekkd
@P.R.Govtcollegekkd 2 жыл бұрын
May i know what's the difference between for loop and while loop
@davidyttech
@davidyttech 2 жыл бұрын
Love From Nepal
@Orey46
@Orey46 5 ай бұрын
here u go with the exercice: #include int main() { int i, n; printf("give me a random integer: "); scanf("%d", &n); i = 10; while (i >= 1){ int s = i * n; printf("%d * %d = %d ", i, n, s); i--; } }
@williamowusu7778
@williamowusu7778 2 жыл бұрын
I declared the product variable outside the while loop but after I tried printing it is not responding as it should please why?
@Tyr0p1tas
@Tyr0p1tas Жыл бұрын
#include int main() { int numberinput; int count = 10; printf("What number would you like to have the multiplication table of? "); scanf("%d", &numberinput); printf(" Here's the multiplication table of %d", numberinput); while(count >= 0){ int product = numberinput * count; printf(" %d*", numberinput); printf("%d=", count); printf("%d", product); count = count - 1; } return 0; }
@thisistusharmahajan
@thisistusharmahajan 2 жыл бұрын
programming task _______ #include int main(){ int i,n; i=10; printf("enter the value of n :"); scanf("%d",&n); do{ int product=n*i; printf("%d*%d=%d ",n,i,product); i=i-1; } while(i>=1); return 0; }
@mahbubhamim7001
@mahbubhamim7001 8 ай бұрын
Beauty with brain ❤>
@hunter9544
@hunter9544 9 ай бұрын
#include int main() { // Write C code here int number; printf("insert thy number: "); scanf("%d", &number); int count=10; while (count >=1) { int product=count * number; printf("%d ", product); count--; } return 0; } Arise
@rananagy6754
@rananagy6754 Жыл бұрын
Thank you ❤❤❤❤❤
@KageraTanzania
@KageraTanzania 20 күн бұрын
Answer is number B. int i = 3; While(i < 4) {...}
@ozgeylmaz8685
@ozgeylmaz8685 Жыл бұрын
great tutorials
@hasibulislam8198
@hasibulislam8198 Жыл бұрын
#include int main() { int num,result,i=10; printf("Enter your value: "); scanf("%d",&num); while(i>=1) { result=num*i; printf("%d*%d=%d ",num,i,result); i=i-1; } }
@ishaangupta2353
@ishaangupta2353 11 ай бұрын
Ma'am I have a question. in the programiz quiz part the 3 option is missing the ';' but still the answer is all of the above. How?
@flavioteron799
@flavioteron799 3 ай бұрын
Ignore the syntax and focus on the logic problem. they also lack a end condition so they all loop.
@akshitaprajapat225
@akshitaprajapat225 3 жыл бұрын
Ma'am lemme know the condition for "do ,loop" to print any table I tried but couldn't 😑
@Project.i
@Project.i 9 ай бұрын
//multipication using while loop in reverse #include int main(){ int number; printf("Enter the number to perform multipication table: "); scanf("%d", &number); int count = 10; while (count >= 1){ int product = number * count; printf("%d*%d = %d ", number, count, product); count = count - 1; } return 0; }
@TheHeraldOfSpring
@TheHeraldOfSpring 5 ай бұрын
#include int main() { double number; printf("Enter the number you want to multiply: "); scanf("%lf", &number); int count = 10; while (count = 0) { double product = number * count; printf("%lf * %d = %lf, ", number, count, product); printf("the value of multiplier: %d ", count); count -= 1; } return 0; }
@kelvinlikweta1232
@kelvinlikweta1232 Жыл бұрын
Where do I find answers to the test questions you give?
@Selcuk._._
@Selcuk._._ 9 ай бұрын
Can it get any shorter than that? int num, count = 11; printf("Enter number: "); scanf_s("%d", &num); while (count-- > 1) printf("%d x %d = %d ", num, count, num * count);
@ryogeswari8457
@ryogeswari8457 Жыл бұрын
include int main() { int number,product,count; count=10; printf("enter the number:"); scanf("%d",&number); do { product=number*count; printf("%d*%d=%d ",number,count,product); count=count-1; } while(count>=1); return 0; }
@janenjenga1335
@janenjenga1335 Жыл бұрын
My question is why write %d what does it mean and second why inthe example code is there printf(enter number) and scanf(%d &number) what do they mean ... Please help
@capitaineagle5702
@capitaineagle5702 Жыл бұрын
Watch their previous videos and you’ll understand
#13: for Loop in C Programming | C Programming for Beginners
10:28
#11: Switch Statement in C | C Programming for Beginners
11:10
Programiz
Рет қаралды 175 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
C++ Tutorial -   Loops In C++ [For Loop, While Loop, Do While Loop]
16:20
#15  C Functions | C Programming for Beginners
16:57
Programiz
Рет қаралды 248 М.
Russian secret base uncovered / Russia abandons the region
14:15
NEXTA Live
Рет қаралды 800 М.
#8: Boolean and Comparison Operators in C Programming
14:42
Programiz
Рет қаралды 141 М.
for and while Loops
6:49
Neso Academy
Рет қаралды 767 М.
#19 C Arrays | C Programming For Beginners
13:04
Programiz
Рет қаралды 304 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН