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

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024

Комментарии • 261

  • @programizstudios
    @programizstudios  2 года назад +4

    🔥Finding it Damn Hard to Understand C Programming?
    Learn to code-the right way-with interactive lessons, quizzes & challenges. Build a strong programming base; it's IMPORTANT!
    Try Programiz PRO for Free: bit.ly/master-c-programming

  • @Lolz_amv
    @Lolz_amv 2 года назад +47

    I wish my professor explains like you!

    • @user-nt4nm4fb3u
      @user-nt4nm4fb3u 8 месяцев назад

      Professors will not, they're no more than an intellect maniac.

  • @baryonyx9241
    @baryonyx9241 6 месяцев назад +3

    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 2 года назад +58

    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...

    • @sairajfogueri3824
      @sairajfogueri3824 2 года назад +7

      We hv to write a default statement for numbers entered out of tht range !

    • @tamilmovies2086
      @tamilmovies2086 2 года назад +7

      compiler error bro. you not defind c header file #include

  • @DHANAJAYAN-p9t
    @DHANAJAYAN-p9t 21 день назад

    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...

  • @hridhanpatel3987
    @hridhanpatel3987 2 года назад +33

    really useful :)
    please increase the frequency of these lectures

  • @Remix-e4u
    @Remix-e4u 2 года назад +7

    pretty good definition at the beginning . Explains where you should put what for beginners.

  • @Motherslife756
    @Motherslife756 2 года назад +3

    I wish my professor explains like you!

  • @benchmarkslab2005
    @benchmarkslab2005 2 года назад +15

    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;

    }

  • @ludowithsanjay
    @ludowithsanjay 2 года назад +3

    Mam you exclaims very well and i can understand better than my teacher.

  • @user-nt4nm4fb3u
    @user-nt4nm4fb3u 8 месяцев назад

    Good and simple to understand. Keep doing it, we need it. I'm grateful for everyone who making this happen.

  • @Chief_Spartan254.
    @Chief_Spartan254. 11 месяцев назад +4

    Nice presentation, simple and easily understandable 👍

  • @elangsankar7168
    @elangsankar7168 Год назад +2

    Every thing is easy if taught by this beautiful ----------- ; KEEP UP THE GOOD WORK ;

  • @juliotitosagastegui9453
    @juliotitosagastegui9453 8 месяцев назад

    I love you videos, straight to the point, clear and organized

  • @kemzy_
    @kemzy_ 15 дней назад

    This is so easy to understand. Thank you

  • @racingfan372
    @racingfan372 2 года назад +26

    Default will be executed, so the answer is D

    • @yolo_in_universe
      @yolo_in_universe Год назад +1

      Can I know how?

    • @mr.G4MES1
      @mr.G4MES1 Год назад +5

      @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 .

  • @programizstudios
    @programizstudios  2 года назад +16

    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

  • @sumaiamukta8405
    @sumaiamukta8405 10 месяцев назад +1

    I love the way u Teach us ❤ Thank u

  • @everythingaboutcricket8119
    @everythingaboutcricket8119 2 года назад +19

    From where you copied this simple calculator program its not working

    • @nenastemis9580
      @nenastemis9580 Год назад +11

      Add printf("%lf", result) at the end

    • @TIKTOK-gj7jb
      @TIKTOK-gj7jb 4 месяца назад

      @@nenastemis9580 where at the end ?

  • @Iqra-ls7wf
    @Iqra-ls7wf 3 месяца назад

    concise n comprehensive, thanks.

  • @countrysideshowyaigrock4689
    @countrysideshowyaigrock4689 Год назад +2

    Thank you for this lesson!!

  • @gamerscam999
    @gamerscam999 2 года назад +2

    Nyc Sister❤️ Thankyou Alot Sister Best of luck☺️💯

  • @BubeleSomafu
    @BubeleSomafu 4 месяца назад

    Well Explained, u never disappoint 10/10 for me❤😊

  • @kamleshchauhan6894
    @kamleshchauhan6894 2 года назад +5

    Di can you explain for what getter and setter are are used in object oriented programming

  • @elyasaf3387
    @elyasaf3387 2 года назад +1

    thank you very much padma ji

  • @hridhanpatel3987
    @hridhanpatel3987 2 года назад +4

    By how much time full C course will be completed??

  • @Abhishek_Arya_777
    @Abhishek_Arya_777 Год назад +1

    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 9 месяцев назад

      English is more of practice, listen more of the accent you want to learn and use English more than your Mother tongue.

  • @anasasif8714
    @anasasif8714 11 месяцев назад +2

    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 8 месяцев назад

      We have to print all 12 months. Not only 3.

  • @tetkuel3146
    @tetkuel3146 Год назад

    Thank you so much
    It has helped me a lot

  • @onic9623
    @onic9623 Год назад +11

    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;
    }

  • @devideepikasingidi
    @devideepikasingidi 11 месяцев назад +1

    mam your explanation was so clear and very easy to understant thank you mam for providing such beatiful classes

  • @bacmath1220
    @bacmath1220 3 месяца назад +1

    hi ! why didn't we write printf("%lf",result)

  • @almahfuz777
    @almahfuz777 2 года назад +5

    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?

  • @SANJAYR-yy1zg
    @SANJAYR-yy1zg 7 месяцев назад +1

    Answer is option d
    Default

  • @alvinkiprop8850
    @alvinkiprop8850 2 года назад +3

    I leave this comment for everyone who benefits to leave a like to remind me of this awesome content

  • @nii_077
    @nii_077 10 месяцев назад

    Super thank you so much mam!!🙏🏻

  • @Lamya_1
    @Lamya_1 2 года назад +3

    Here I come ❤️❤️

  • @samwells1238
    @samwells1238 11 месяцев назад +2

    Without using the print function in the switch case body, my program was not working.. any suggestions on why that is so?

    • @cydabnz
      @cydabnz 7 месяцев назад

      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

  • @fatiseei-tofi95
    @fatiseei-tofi95 9 месяцев назад

    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;
    }

  • @light-warrior
    @light-warrior 8 месяцев назад

    Programming Task:
    #include
    int main() {
    int month;
    printf("Enter a number for finding the month between 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;
    default:
    printf("Invalid number. Please restart the program and try again.");
    }
    return 0;
    }
    D is the correct option.

  • @avdeshsingh001
    @avdeshsingh001 Год назад

    Thanks ma'am

  • @Darkness-898
    @Darkness-898 4 месяца назад

    Programming Task:
    #include
    int main() {
    int month;
    printf("Enter a number from 1-12: ");
    scanf("%d", &month);
    //Switch is used here
    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;
    default:
    printf("Invalid Number");
    }
    return 0;
    }
    Programmiz Quiz Answer: Option(D) default

  • @ryanranjith672
    @ryanranjith672 Месяц назад

    #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;
    }

  • @mohammedalrbadi1323
    @mohammedalrbadi1323 Год назад +2

    #include
    int main(){
    int month;
    printf("enter the month's corresponding number");
    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 10:
    printf("January");
    break; */
    case 11:
    printf("November ");
    break;
    case 12:
    printf("December");
    break;
    }
    }

  • @MrAnoop999
    @MrAnoop999 2 года назад

    Well Explained Madam

  • @abhijeetverma-xk5eq
    @abhijeetverma-xk5eq Год назад +2

    #include
    int main ()
    {
    int num;
    printf("Enter the number from 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;
    }

  • @nikhileshsathua9950
    @nikhileshsathua9950 2 года назад +1

    Option D

  • @shrur3527
    @shrur3527 11 месяцев назад +1

    Tq🙏🙏❤️❤️

  • @Project.i
    @Project.i 6 месяцев назад

    //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;
    }

  • @sirishaila9460
    @sirishaila9460 Год назад

    #include
    int main () {
    int month;
    printf("enter numbers from 1 to 12:");
    scanf("%d", &month);
    switch(month) {
    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("jul");
    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");
    }
    return 0;
    }

  • @skullyviper35
    @skullyviper35 Месяц назад

    @programizstudios can we use number

  • @searching3059
    @searching3059 2 года назад +1

    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;
    }

  • @fawaz_raz
    @fawaz_raz 2 месяца назад

    where is printf statement to print the results

  • @asadfarzand4463
    @asadfarzand4463 Год назад +8

    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 Год назад +3

      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 Год назад +1

      @@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 11 месяцев назад +1

      #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

  • @devarapallivamsi2981
    @devarapallivamsi2981 2 года назад

    Happy programming..!

  • @tlsgequ4984
    @tlsgequ4984 Год назад

    D is the correct answer ❤❤

  • @chinyereabali5321
    @chinyereabali5321 Год назад

    Ur the best 😚

  • @hamada8684
    @hamada8684 2 года назад

    great video

  • @MagaScampini
    @MagaScampini 5 месяцев назад

    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;
    }

  • @shirishakoduru9821
    @shirishakoduru9821 3 месяца назад +1

    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;
    }

  • @abdirizakdahir6177
    @abdirizakdahir6177 Год назад +1

    I did the initial part but the output when I try to add up two numbers no results will come out.

    • @chiomannalue4586
      @chiomannalue4586 Год назад +1

      Did you add
      Printf(“%.2lf”, result);
      Add it before the return 0

  • @raghuvs1491
    @raghuvs1491 2 года назад +1

    #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;
    }

  • @V1ctorinos
    @V1ctorinos 2 месяца назад

    Answer is D . default.

  • @lekhankruthagnya3792
    @lekhankruthagnya3792 2 года назад +1

    Why cant we use this code?
    #include
    int main() {
    int number;
    printf("enter number");
    scanf("%d",&number);
    if (number == 1) printf("Sunday");
    if (number == 2) printf("Monday");
    if (number == 3) printf("Tuesday");
    if (number == 4) printf("Wednesday");
    if (number == 5) printf("Thuesday");
    if (number == 6) printf("Friday");
    if (number == 7) printf("Saturday");
    else printf("Invalid"); return 0;
    }

  • @rayyanahmed321
    @rayyanahmed321 Год назад +1

    Assalamoalaikum dedi

  • @harshrajvaghela699
    @harshrajvaghela699 2 года назад +1

    please use ezay English or hindi

  • @UmarAli-fg6po
    @UmarAli-fg6po 2 года назад

    It shows case and break statement within loop or switch..

  • @adityasharma3947
    @adityasharma3947 11 месяцев назад

    D default case

  • @YuvanShankarC
    @YuvanShankarC 7 месяцев назад

    8:45 ,Can we use a keyword as a variable name?

  • @yasserarqam8280
    @yasserarqam8280 Год назад

    #include
    int main() {
    int month;
    printf("Enter the month between 1 to 12: ");
    scanf("%d" , &month);
    switch(month) {
    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("jul");
    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 month");
    }

    return 0;
    }

  • @BinishTasaffar
    @BinishTasaffar 3 месяца назад

    the answer of quiz is default

  • @rezaghasemzadeh9440
    @rezaghasemzadeh9440 Год назад +1

    how did you print the result?

  • @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;
    }

  • @One_piece1089
    @One_piece1089 Год назад

    great vidio

  • @albertamenyah3019
    @albertamenyah3019 Год назад

    The answer is D. default.

  • @OgaPita
    @OgaPita Год назад

    Welll done

  • @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;
    }

  • @shrur3527
    @shrur3527 11 месяцев назад

    Tq🙏❤️

  • @furkanakdag7644
    @furkanakdag7644 9 месяцев назад

    Answer is "D"

  • @balashebjadhav977
    @balashebjadhav977 Год назад

    Answer is D) default

  • @saikondala
    @saikondala Год назад

    Why we use return zero

  • @gayathri0301
    @gayathri0301 3 месяца назад

    #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("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 choice");
    }
    return 0;
    }
    This is the programming task mam

  • @petraakbari846
    @petraakbari846 Год назад

    Thank you!! by the way you are sooo pretty

  • @sawewfelipe7480
    @sawewfelipe7480 3 месяца назад

    the answer is 'D'
    default.

  • @AESTHETICMUSIC-en4wx
    @AESTHETICMUSIC-en4wx Год назад

    #include
    int main()
    {
    int month ;
    printf("Enter the number between 1 to 12: ");
    scanf("%d", &month);
    switch (month){
    case 1:
    printf("January");
    break;
    case 2:
    printf("Feb");
    break;
    case 3:
    printf("Mar");
    break;
    case 4:
    printf("Apr");
    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");
    }


    return 0;
    }

  • @sharmaanish2277
    @sharmaanish2277 Год назад

    Plz show full code of the calculator

  • @edigavaralakshmi1378
    @edigavaralakshmi1378 2 года назад +1

    Default

  • @ielts_frustration
    @ielts_frustration Месяц назад

    Is the ans is c ????

  • @imrannazari8642
    @imrannazari8642 Год назад

    the answer is d for the quiz

  • @PraveenPraveen-us3rp
    @PraveenPraveen-us3rp Год назад

    Option (d)

  • @darshanvm2819
    @darshanvm2819 9 месяцев назад

    option d

  • @kanarajitha5739
    @kanarajitha5739 Год назад

    Answer is d

  • @Mr_Taz71
    @Mr_Taz71 4 месяца назад

    #include
    int main() {
    int number;
    printf("enter any number between 1-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("choose between 1-12 please");
    }
    }
    /* IAU-222
    they call me taz*/

  • @searching3059
    @searching3059 2 года назад

    Answers is D madam

  • @viralfoodies1886
    @viralfoodies1886 2 года назад

    answer:optio D

  • @bhavanaanu9076
    @bhavanaanu9076 2 года назад +2

    Option d mam!!

    • @tamilmovies2086
      @tamilmovies2086 2 года назад

      Bhavana Anu How you select option D is correct answer !!!

  • @vinodpatel3059
    @vinodpatel3059 2 года назад +1

    Default

  • @RachealBasingwire
    @RachealBasingwire 4 месяца назад

    D =4

  • @yadlaaravind811
    @yadlaaravind811 Год назад

    Answer:d

  • @MeetPatel-zg9oo
    @MeetPatel-zg9oo 9 месяцев назад +1

    #include
    #include
    int main() {
    int number;
    printf("enter a number from 1-12 :");
    scanf("%d",&number);

    switch(number){
    case 1: printf("january");
    break;
    case 2: printf("fabruary");
    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;
    }