#11: Switch Statement in C | C Programming for Beginners

  Рет қаралды 175,371

Programiz

Programiz

Күн бұрын

Пікірлер: 275
@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
@baryonyx9241
@baryonyx9241 9 ай бұрын
Im at university in the second semester nad honestly I gave up on trying to understand my programing teacher since its a very old one and it seems like she explains only for herself, this is greatly helping me to get trough the c programing material and actually have a good understanding on it. Also the answer at the end is default.
@hurulaynmuhamedsalimcedarp5770
@hurulaynmuhamedsalimcedarp5770 3 жыл бұрын
Programming Task: int month; printf("Enter numbers from 1 - 12: "); scanf("%d", &month); switch(month) { case 1: printf("January"); break; case 2: printf("February"); break; case 3: printf("March"); break; case 4: printf("April"); break; case 5: printf("May"); break; case 6: printf("June"); break; case 7: printf("July"); break; case 8: printf("August"); break; case 9: printf("September"); break; case 10: printf("October"); break; case 11: printf("November"); break; case 12: printf("December"); break; } return 0; }
@earthquakenationz
@earthquakenationz 2 жыл бұрын
thanks bro...
@Unfiltered_sky
@Unfiltered_sky 2 жыл бұрын
We hv to write a default statement for numbers entered out of tht range !
@tamilmovies2086
@tamilmovies2086 2 жыл бұрын
compiler error bro. you not defind c header file #include
@Aldous-d7s
@Aldous-d7s Ай бұрын
😂​@@tamilmovies2086
@hridhanpatel3987
@hridhanpatel3987 3 жыл бұрын
really useful :) please increase the frequency of these lectures
@RemixCinematic
@RemixCinematic 2 жыл бұрын
pretty good definition at the beginning . Explains where you should put what for beginners.
@benchmarkslab2005
@benchmarkslab2005 2 жыл бұрын
the code for task is: #include int main() { int number; printf("enter the number between 1 to 12 :"); scanf("%d", &number); switch (number) { case 1: printf("january"); break; case 2: printf("febuary"); break; case 3: printf("march"); break; case 4: printf("april"); break; case 5: printf("may"); break; case 6: printf("june"); break; case 7: printf("july"); break; case 8: printf("august"); break; case 9: printf("september"); break; case 10: printf("october"); break; case 11: printf("november"); break; case 12: printf("december"); break; default : printf("invalid number"); } return 0; }
@yogithabale
@yogithabale 6 ай бұрын
correct bro
@Motherslife756
@Motherslife756 2 жыл бұрын
I wish my professor explains like you!
@ludowithsanjay
@ludowithsanjay 2 жыл бұрын
Mam you exclaims very well and i can understand better than my teacher.
@DHANAJAYAN-p9t
@DHANAJAYAN-p9t 4 ай бұрын
iam very scared of learning c language when teached by professors in college..beacause they did not teach properly and they teach without patient..but i had clear idea about this language and able to code myself and i have good in tutorials..this is really because of you mam..your patient and calmness while teaching is very likeable...you taught it in good way...very good explanation...thanks for the good tutorial...make more videos..we are waiting to encourage and support you...
@godwillalex2879
@godwillalex2879 Ай бұрын
@user-nt4nm4fb3u
@user-nt4nm4fb3u 11 ай бұрын
Good and simple to understand. Keep doing it, we need it. I'm grateful for everyone who making this happen.
@programizstudios
@programizstudios 3 жыл бұрын
Q. Which of the cases is executed in the following code? int number = 4; switch(number) { case 1: case 2: default: } A. case1 B. case 2 C. case 4 D. default
@subhajitNath0
@subhajitNath0 3 жыл бұрын
D
@hurulaynmuhamedsalimcedarp5770
@hurulaynmuhamedsalimcedarp5770 3 жыл бұрын
I think the answer might be D.
@harshadatapre2133
@harshadatapre2133 3 жыл бұрын
D. default
@mr.karthikadams
@mr.karthikadams 3 жыл бұрын
D) Default
@vadapallikarthik3845
@vadapallikarthik3845 3 жыл бұрын
Its default
@racingfan372
@racingfan372 3 жыл бұрын
Default will be executed, so the answer is D
@yolo_in_universe
@yolo_in_universe 2 жыл бұрын
Can I know how?
@mr.G4MES1
@mr.G4MES1 Жыл бұрын
@Thrishul nath simple Explanation is, it's because a Case wasn't created for number 4 hence the reason if you enter 4 it will just run the default code .
@KageraTanzania
@KageraTanzania 23 күн бұрын
Thank you very much now I have started to understand some
@Chief_Spartan254.
@Chief_Spartan254. Жыл бұрын
Nice presentation, simple and easily understandable 👍
@anasasif8714
@anasasif8714 Жыл бұрын
int main() { int number; printf("enter your number: "); scanf("%d",&number); switch(number){ case 1: printf("january"); break; case 2: printf("february"); break; case 3: printf("march"); break; default: printf("invalid number"); } return 0; }
@VibrantAQ
@VibrantAQ Жыл бұрын
We have to print all 12 months. Not only 3.
@juliotitosagastegui9453
@juliotitosagastegui9453 11 ай бұрын
I love you videos, straight to the point, clear and organized
@kemzy_
@kemzy_ 3 ай бұрын
This is so easy to understand. Thank you
@onic9623
@onic9623 Жыл бұрын
Option D : Default #include int main() { int num; printf("Enter A Number : "); scanf("%d", &num); switch (num) { case 1: printf("January "); break; case 2: printf("February "); break; case 3: printf("March "); break; case 4: printf("April "); break; case 5: printf("May "); break; case 6: printf("June "); break; case 7: printf("July "); break; case 8: printf("August "); break; case 9: printf("September "); break; case 10: printf("October "); break; case 11: printf("November "); break; case 12: printf("December "); break; default: printf("Invalid Number "); break; } return 0; }
@elangsankar7168
@elangsankar7168 Жыл бұрын
Every thing is easy if taught by this beautiful ----------- ; KEEP UP THE GOOD WORK ;
@hridhanpatel3987
@hridhanpatel3987 3 жыл бұрын
By how much time full C course will be completed??
@almahfuz777
@almahfuz777 3 жыл бұрын
In the calculator code, you used default statement in the break parentheses. as a result when you take an invalid operator input, it prints both the default part and result part. can u fix that?
@sumaiamukta8405
@sumaiamukta8405 Жыл бұрын
I love the way u Teach us ❤ Thank u
@gamerscam999
@gamerscam999 2 жыл бұрын
Nyc Sister❤️ Thankyou Alot Sister Best of luck☺️💯
@countrysideshowyaigrock4689
@countrysideshowyaigrock4689 Жыл бұрын
Thank you for this lesson!!
@kamleshchauhan6894
@kamleshchauhan6894 3 жыл бұрын
Di can you explain for what getter and setter are are used in object oriented programming
@mohsinabdulrauf9145
@mohsinabdulrauf9145 2 жыл бұрын
set->input and get->print
@dreadwing1784
@dreadwing1784 Ай бұрын
Nice explanation....its usefull!!⭐
@Iqra-ls7wf
@Iqra-ls7wf 7 ай бұрын
concise n comprehensive, thanks.
@BubeleSomafu
@BubeleSomafu 8 ай бұрын
Well Explained, u never disappoint 10/10 for me❤😊
@alvinkiprop8850
@alvinkiprop8850 2 жыл бұрын
I leave this comment for everyone who benefits to leave a like to remind me of this awesome content
@YuvanShankarC
@YuvanShankarC 10 ай бұрын
8:45 ,Can we use a keyword as a variable name?
@elyasaf3387
@elyasaf3387 2 жыл бұрын
thank you very much padma ji
@Lamya_1
@Lamya_1 3 жыл бұрын
Here I come ❤️❤️
@Abhishek_Arya_777
@Abhishek_Arya_777 Жыл бұрын
The video was very helpful, Can u please give some tips to improve our english speaking.... I can speak english but the accent you have mam i want that thing in my speaking also
@kennedymututwa7429
@kennedymututwa7429 Жыл бұрын
English is more of practice, listen more of the accent you want to learn and use English more than your Mother tongue.
@fatiseei-tofi95
@fatiseei-tofi95 Жыл бұрын
Programming task: #include int main() { printf("Choose a number from 1-12: "); int number; scanf("%d", &number); switch(number) { case 1: printf("January"); break; case 2: printf("February"); break; case 3: printf("March"); break; case 4: printf("April"); break; case 5: printf("May"); break; case 6: printf("June"); break; case 7: printf("July"); break; case 8: printf("August"); break; case 9: printf("September"); break; case 10: printf("October"); break; case 11: printf("November"); break; case 12: printf("December"); break; default: printf("Your dumbass can't read."); break; } return 0; }
@samwells1238
@samwells1238 Жыл бұрын
Without using the print function in the switch case body, my program was not working.. any suggestions on why that is so?
@cydabnz
@cydabnz 10 ай бұрын
you have to use the print option because she seems to be using a different compiler. So you need to introduce the print function in there
@HosheaAshok-Kumar
@HosheaAshok-Kumar 2 ай бұрын
Guys for the calculator, it's a good idea to print 'undefined' in case the user enters 0 for the second number. case '/': result=firstnum/secondnum; if (secondnum != 0) { printf("%.2lf / %.2lf = %.2lf", firstnum, secondnum, result); } else { printf("Undefined"); } break;
@asadfarzand4463
@asadfarzand4463 2 жыл бұрын
12) Write a program using a “switch case” which ask a user to choose a number (1-3) from the display menu to perform the following functions: • For “1” calculate the square root of that number. • For “2” calculate the cube of that number. • For “3” print that number 50 times. • For “4” print the table of that number • In the case of none of the above cases, print invalid choice. 13) Using the nested switch case, write a program with a game option with a different hierarchy just for display options to control the game. can u solve these questions?
@bullying3831
@bullying3831 2 жыл бұрын
Hello! I just started learning C and coded like this to exercise 12: #include int main() { int number; printf("Enter a number from 1 to 4: "); scanf_s("%d", &number); double number1; printf("Enter any number: "); scanf_s("%lf", &number1); double square = (number1 * number1); double cube = (number1 * number1 * number1); double times50 = (number1); switch (number) { case 1: printf("%lf", square); break; case 2: printf("%lf", cube); break; case 3: printf("%.2lf", times50); break; case 4: printf("For now, I can't do that"); break; default: printf("Invalid number"); } } I was able to complete only the first two conditions. If you know how to complete the whole exercise, could you please send me how you did that?
@idowuabdulkhaliq-gg9gp
@idowuabdulkhaliq-gg9gp Жыл бұрын
@@bullying3831 HI, nice work here... But I feel like instead of multiplying the number by itself, u could use exponential so in that case u can calculate the number fifty times.
@ranjithn0605
@ranjithn0605 Жыл бұрын
#include #include int main() { int choice, number; printf("Choose an option from the menu: "); printf("1. Calculate the square root of a number "); printf("2. Calculate the cube of a number "); printf("3. Print a number 50 times "); printf("4. Print the table of a number "); printf("Enter your choice (1-4): "); scanf("%d", &choice); switch (choice) { case 1: printf("Enter a number: "); scanf("%d", &number); printf("Square root of %d is %lf ", number, sqrt(number)); break; case 2: printf("Enter a number: "); scanf("%d", &number); printf("Cube of %d is %d ", number, number * number * number); break; case 3: printf("Enter a number: "); scanf("%d", &number); printf("Printing %d 50 times: ", number); for (int i = 0; i < 50; i++) { printf("%d ", number); } printf(" "); break; case 4: printf("Enter a number: "); scanf("%d", &number); printf("Table of %d: ", number); for (int i = 1; i
@SANJAYR-yy1zg
@SANJAYR-yy1zg 10 ай бұрын
Answer is option d Default
@tlsgequ4984
@tlsgequ4984 Жыл бұрын
D is the correct answer ❤❤
@everythingaboutcricket8119
@everythingaboutcricket8119 3 жыл бұрын
From where you copied this simple calculator program its not working
@nenastemis9580
@nenastemis9580 Жыл бұрын
Add printf("%lf", result) at the end
@TIKTOK-gj7jb
@TIKTOK-gj7jb 7 ай бұрын
@@nenastemis9580 where at the end ?
@tetkuel3146
@tetkuel3146 Жыл бұрын
Thank you so much It has helped me a lot
@searching3059
@searching3059 2 жыл бұрын
Madam task program complete include int main() { int num; printf("Enter month numbers 1 to 12::"); scanf("%d",&num); switch(num) { case 1: printf("JANUARY"); break; case 2: printf("FEBRUARY"); break; case 3: printf("MARCH"); break; case 4: printf("APRIL"); break; case 5: printf("MAY"); break; case 6: printf("JUNE"); break; case 7: printf("JULY"); break; case 8: printf("AUGUST"); break; case 9: printf("SEPTUMBER"); break; case 10: printf("OCTOMBAR"); break; case 11: printf("NOVEMBER"); break; case 12: printf("DECEMBER"); break; default: printf("INVAILD"); break; } return 0; }
@nii_077
@nii_077 Жыл бұрын
Super thank you so much mam!!🙏🏻
@devideepikasingidi
@devideepikasingidi Жыл бұрын
mam your explanation was so clear and very easy to understant thank you mam for providing such beatiful classes
@shirishakoduru9821
@shirishakoduru9821 6 ай бұрын
Programming task: #include Int main(){ Char operator; Printf("choose an operator['+', '_', '*', '/']; "); Scanf("%c " ,&operator); Double num1,num2; Printf("enter first number: "); Scanf("%lf", &num1); Printf("enter second number: "); Scanf("%lf" ,&num2); Double result; Switch(operator){ Case '+' : Printf("%.0lf+%.0lf=%.0lf", num1 , num2, num1+ num2); Break; Case '-' : Printf("%.0lf-%.0lf=%.0lf" ,num1, num2, num1- num2); Break; } Return 0; }
@raghu_Kannadiga
@raghu_Kannadiga 2 жыл бұрын
#include int main() { int number; printf ("enter the number between 1 to 12 : "); scanf ("%d", &number); switch (number) { case 1: printf ("jan"); break; case 2: printf ("feb"); break; case 3: printf ("march"); break; case 4: printf ("April"); break; case 5: printf ("may"); break; case 6: printf ("june"); break; case 7: printf ("july"); break; case 8: printf ("Aug"); break; case 9: printf ("Sep"); break; case 10: printf ("Oct"); break; case 11: printf ("nov"); break; case 12: printf ("dec"); break; default: printf ("invalid number"); } return 0; }
@bacmath1220
@bacmath1220 7 ай бұрын
hi ! why didn't we write printf("%lf",result)
@Project.i
@Project.i 9 ай бұрын
//using switch case to view month name by entering number #include int main(){ int number; printf("Enter a number between 1 to 12: "); scanf("%d", &number); switch(number){ case 1: printf("January"); break; case 2: printf("febuary"); break; case 3: printf("March"); break; case 4: printf("April"); break; case 5: printf("May"); break; case 6: printf("June"); break; case 7: printf("July"); break; case 8: printf("August"); break; case 9: printf("September"); break; case 10: printf("October"); break; case 11: printf("November"); break; case 12: printf("December"); break; default: printf("Invalid Number"); } return 0; }
@yunghan1754
@yunghan1754 2 ай бұрын
10:54 answer is default!
@MagaScampini
@MagaScampini 9 ай бұрын
int number; printf("Enter a number between 1 to 12: "); scanf("%d", &number); switch(number) { case 1: printf("Enero "); break; case 2: printf("Febrero "); break; case 3: printf("Marzo "); break; case 4: printf("Abril "); break; case 5: printf("Mayo "); break; case 6: printf("Junio "); break; case 7: printf("Julio "); break; case 8: printf("Agosto "); break; case 9: printf("Septiembre "); break; case 10: printf("Octubre "); break; case 11: printf("Noviembre "); break; case 12: printf("Diciembre "); break; default: printf("Invalid Number"); } return 0; }
@abdirizakdahir6177
@abdirizakdahir6177 Жыл бұрын
I did the initial part but the output when I try to add up two numbers no results will come out.
@chiomannalue4586
@chiomannalue4586 Жыл бұрын
Did you add Printf(“%.2lf”, result); Add it before the return 0
@skullyviper35
@skullyviper35 4 ай бұрын
@programizstudios can we use number
@WesleyMarquesdeOliveira-i2d
@WesleyMarquesdeOliveira-i2d Жыл бұрын
I'm sorry for the mistakes. I was drinking Budweiser hahawhwhawhh! Thaks a lot from Brazil! // Online C compiler to run C program online #include int main() { int number; printf("Hello, my name is Nemesys, choose one number and input it, please..."); scanf("%d",&number); switch(number){ case(1): printf("The month is January"); break; case(2): printf("The month is February"); break; case(3): printf("The month is March"); break; case(4): printf("The month is April"); break; case(5): printf("The month is May"); break; case(6): printf("The month is June"); break; case(7): printf("The month is Jully"); break; case(8): printf("The month is August"); break; case(9): printf("The month is September"); break; case(10): printf("The month is October"); break; case(11): printf("The month is November"); break; case(12): printf("The month is December"); break; default:(printf("stop drinking, you're crazy now ahahhahah")); break; } return 0; }
@rezaghasemzadeh9440
@rezaghasemzadeh9440 Жыл бұрын
how did you print the result?
@devarapallivamsi2981
@devarapallivamsi2981 2 жыл бұрын
// Online C compiler to run C program online #include int main() { printf("Thank you programiz team"); return 0; }
@devarapallivamsi2981
@devarapallivamsi2981 2 жыл бұрын
Happy programming..!
@chinyereabali5321
@chinyereabali5321 Жыл бұрын
Ur the best 😚
@KlintJoshuaErat
@KlintJoshuaErat 2 ай бұрын
what is the default code of the simple calculator?
@UmarAli-fg6po
@UmarAli-fg6po 2 жыл бұрын
It shows case and break statement within loop or switch..
@jaggadouynt3212
@jaggadouynt3212 17 күн бұрын
Thanks, " D" default
@MrAnoop999
@MrAnoop999 2 жыл бұрын
Well Explained Madam
@petraakbari846
@petraakbari846 2 жыл бұрын
Thank you!! by the way you are sooo pretty
@avdeshsingh001
@avdeshsingh001 2 жыл бұрын
Thanks ma'am
@Tatchim
@Tatchim Жыл бұрын
#include int main() { double result; char operator; printf("choose operator['+', '-', '*', '/']:"); scanf("%c", &operator); double num1, num2; printf("enter num1:"); scanf("%lf", &num1); printf("enter num2:"); scanf("%lf", &num2); switch(operator); case '+'; result=num1 + num2; break; case '-'; result=num1 - num2; break; case '*'; result=num1 * num2; break; case '/'; result=num1 / num2; break; case '-'; result=num2 - num1; break; case: '/'; result=num2 / num1; break; default; printf("invalide num"); return 0; } According to my compiler, 20 errors detected but i can't identify them please help
@shelmithmwangi1712
@shelmithmwangi1712 Жыл бұрын
Which compiler are you using?
@Tatchim
@Tatchim Жыл бұрын
@@shelmithmwangi1712 Android c++ compiler
@shelmithmwangi1712
@shelmithmwangi1712 Жыл бұрын
@@Tatchim okay you would get an error because of using a semicolon at switch(operator)...remove the semicolon
@hamada8684
@hamada8684 2 жыл бұрын
great video
@shrur3527
@shrur3527 Жыл бұрын
Tq🙏🙏❤️❤️
@fawaz_raz
@fawaz_raz 5 ай бұрын
where is printf statement to print the results
@b7sh_b7sh
@b7sh_b7sh Жыл бұрын
great vidio
@osamudiamenidehen-p5g
@osamudiamenidehen-p5g Жыл бұрын
What if I want to subtract the first number from the second number..?
@aman-wb2ct
@aman-wb2ct 8 ай бұрын
Did u find out the answer?
@saikondala
@saikondala 2 жыл бұрын
Why we use return zero
@gowthamkarthi8634
@gowthamkarthi8634 2 жыл бұрын
if is not given in scanf("%c",operator) my programm stops just before that
@OgaPita
@OgaPita 2 жыл бұрын
Welll done
@ryanranjith672
@ryanranjith672 4 ай бұрын
#include int main() { int month; printf("enter number"); scanf("%d", &month); switch (month) { case 1: printf("January"); break; case 2: printf("Feb"); break; default: printf("Invalid"); break; } return 0; }
@ranjithn7191
@ranjithn7191 2 жыл бұрын
int number; printf("Enter number between 1 to 12: "); scanf("%d",&number); switch(number){ case 1: printf("jan") ; break; case 2: printf("feb"); break; case 3: printf("mar"); break; case 4: printf("apr"); break; case 5: printf("may"); break; case 6: printf("jun"); break; case 7: printf("july"); break; case 8: printf("aug"); break; case 9: printf("sep"); break; case 10: printf("oct"); break; case 11: printf("nov"); break; case 12: printf("dec"); break; default: printf("invalid"); break can anyone tell me how to code this program in under 6 lines
@earthquakenationz
@earthquakenationz 2 жыл бұрын
I think we can use for loop with an array for numerous choices like this bro... #include void main() { char month[13][10] = {{"jan"}, {"feb"}, {"march"},{"april"},{"may"},{"june"},{"july"},{"august"},{"sept"},{"oct"},{"nov"},{"dec"}}; int i, n; printf("enter number 1 to 12: "); scanf("%d", &n); for(i=0; i
@swapnilmurhekar5253
@swapnilmurhekar5253 10 ай бұрын
Why I'm not getting output Enter number between 1 to 12 ke baad kuch bhi display nahi ho raha hai
@yogithabale
@yogithabale 6 ай бұрын
you should type printf("%lf",result); before return 0
@nikhileshsathua9950
@nikhileshsathua9950 2 жыл бұрын
Option D
@Data2watch
@Data2watch Жыл бұрын
// program to calculate day of a week #include int main() { label: int day; printf("Enter the day of the week: "); scanf("%d", &day); switch (day) { case 1: printf("Its Sunday "); break; case 2: printf("Its Monday "); break; case 3: printf("Its Teusday "); break; case 4: printf("Its Wednesday "); break; case 5: printf("Its Thursday "); break; case 6: printf("Its Friday "); break; case 7: printf("Its Saturday "); break; default: printf("There are 7 days in a week so enter number between 1-7 "); goto label; } return 0; }
@ranimHD4597
@ranimHD4597 Жыл бұрын
i cant see the rest of the calculator's code , can you copy it for me and paste it here ?
@Djuri.
@Djuri. Жыл бұрын
You have github link in the description.
@sharmaanish2277
@sharmaanish2277 Жыл бұрын
Plz show full code of the calculator
@Psychogamerhrushi
@Psychogamerhrushi 4 ай бұрын
CAN ANY ONE SEND ME THE CODE OF CALCULATOR IM GETTING ERRORS EVEN I DO THE SAME AS MAM DOES
@balashebjadhav977
@balashebjadhav977 Жыл бұрын
Answer is D) default
@harshrajvaghela699
@harshrajvaghela699 3 жыл бұрын
please use ezay English or hindi
@rayyanahmed321
@rayyanahmed321 Жыл бұрын
Assalamoalaikum dedi
@shivamchauhan6404
@shivamchauhan6404 2 жыл бұрын
// Online C compiler to run C program online //Using Switch statement getting output of months using numbers from 1 to 12 as input #include int main() { // Write C code here int number; printf("Enter the number from 1 to 12:"); scanf("%d", & number); switch(number){ case 1: printf("January"); break; case 2: printf(" February"); break; case 3: printf("March"); break; case 4: printf("April"); break; case 5: printf(" May"); break; case 6: printf("June"); break; case 7: printf("July"); break; case 8: printf("August"); break; case 9: printf("September"); break; case 10: printf("October"); break; case 11: printf("November"); break; case 12: printf("December"); break; default: printf("No result found"); } }
@rodainekennedy244
@rodainekennedy244 2 жыл бұрын
D is the answer.
@viralfoodies1886
@viralfoodies1886 2 жыл бұрын
answer:optio D
@KageraTanzania
@KageraTanzania 23 күн бұрын
Answer is C. case 4
@adityasharma3947
@adityasharma3947 Жыл бұрын
D default case
@searching3059
@searching3059 2 жыл бұрын
Answers is D madam
@imrannazari8642
@imrannazari8642 2 жыл бұрын
the answer is d for the quiz
@bhavanaanu9076
@bhavanaanu9076 3 жыл бұрын
Option d mam!!
@tamilmovies2086
@tamilmovies2086 2 жыл бұрын
Bhavana Anu How you select option D is correct answer !!!
@albertamenyah3019
@albertamenyah3019 Жыл бұрын
The answer is D. default.
@Tactical_Ninja0806
@Tactical_Ninja0806 Ай бұрын
ans:- default
@furkanakdag7644
@furkanakdag7644 Жыл бұрын
Answer is "D"
@V1ctorinos
@V1ctorinos 5 ай бұрын
Answer is D . default.
@PraveenPraveen-us3rp
@PraveenPraveen-us3rp Жыл бұрын
Option (d)
@sawewfelipe7480
@sawewfelipe7480 7 ай бұрын
the answer is 'D' default.
@subhajitNath0
@subhajitNath0 3 жыл бұрын
Answer D. default
@viviyanavirgina6252
@viviyanavirgina6252 8 ай бұрын
how
@abercharity8023
@abercharity8023 Жыл бұрын
include int main(){ int num; printf("Enter a number between 1 to 12: "); scanf("%d", &num); switch(num){ case 1: printf("January"); break; case 2: printf("February"); break; case 3: printf ("March"); break; case 4: printf("April"); break; case 5: printf("May"); break; case 6: printf("June"); break; case 7: printf("July"); break; case 8: printf("August"); break; case 9: printf("September"); break; case 10: printf("October"); break; case 11: printf("November"); break; case 12: printf("December"); break; default: printf("Invalid number"); } return 0; }
@UrbanAlphonso
@UrbanAlphonso 10 ай бұрын
My answer to last question is default Can anyone tell if that correct o not
@yogithabale
@yogithabale 6 ай бұрын
correct
#12: while Loop in C Programming |  C Programming for Beginners
12:23
#15  C Functions | C Programming for Beginners
16:57
Programiz
Рет қаралды 248 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Learn Switch Statements In 7 Minutes
6:57
Web Dev Simplified
Рет қаралды 48 М.
#8: Boolean and Comparison Operators in C Programming
14:42
Programiz
Рет қаралды 141 М.
why are switch statements so HECKIN fast?
11:03
Low Level
Рет қаралды 438 М.
Build this JS calculator in 15 minutes! 🖩
15:20
Bro Code
Рет қаралды 730 М.
C_31 Switch Statement In C | C Programming Tutorials
22:48
Jenny's Lectures CS IT
Рет қаралды 313 М.
#9: If Else Statements in C | C Programming for Beginners
12:28
Programiz
Рет қаралды 218 М.
#23 C Pointers | C Programming For Beginners
11:01
Programiz
Рет қаралды 159 М.
you will never ask about pointers again after watching this video
8:03
switch Statements | C Programming Tutorial
16:13
Portfolio Courses
Рет қаралды 11 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН