#14 : break and continue in C | C Programming for Beginners

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

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

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

    Finding C programming hard? We’ve got you!
    🚀Get 60% off on Programiz PRO Lifetime Plan this Black Friday-pay once for skills that last forever. Don’t miss out, it’s a limited-time offer!
    👉Grab your discount now: bit.ly/blkfriday-24-yt

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

      #include
      int main() {
      while (1) {
      int number;
      printf("Enter a number: ");
      scanf("%d", &number);
      if (number >= 0) {
      printf("Positive value");
      break;
      }
      if (number % 2 == 0) {
      printf("Negative Even
      ");
      continue;
      }
      printf("%d
      ", number);
      }
      return 0;
      }
      I did in this way, and it is still working. However, in github the solution is written a slightly different. Is this code right?

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

      ❤❤❤

  • @vexpomegran9044
    @vexpomegran9044 2 года назад +17

    no teacher at university explains these so well🖤🖤🖤

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

    Very well explained, this is what we're struggling when we're start coding as a beginner. Here the basics is covered well, and I'm really grateful for it. This eventually will help most of the enthusiastic learners.

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

    Q. Which of the following keywords is used to skip the current iteration of a loop ?
    A. skip
    B. continue
    C. break
    D. loop

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

    you and bro code might be the best coding teachers out there that can explain this 👍

  • @harshadatapre2133
    @harshadatapre2133 2 года назад +21

    //Can you write a prpgram that takes an input from the user and prints it if the value is a negative odd number?
    //*If the input value is positive, end the loop with message, 'Positive Value'
    //*If the input value is negative even, skip the value with message 'Negative Even'
    #include
    int main()
    {
    int number;
    while(1)
    {
    printf("Enter a number:");
    scanf("%d", &number);
    if(number < 0)
    {
    if(number % 2 != 0)
    {
    printf("%d
    ", number);
    continue;
    }
    printf("Negative Even
    ");
    continue;
    }
    printf("Positive Value");
    break;
    }
    }

  • @marusukech.5049
    @marusukech.5049 2 года назад +6

    Answer for Programming Task today
    #include
    int main(){
    while(1){
    int num;
    printf("Enter a number:");
    scanf("%d",&num);
    if(num < 0){
    if((num % 2) != 0){
    printf("%d
    ",num);
    }
    else{
    printf("Negatif Even
    ");
    continue;
    }
    }
    else{
    printf("Positif value");
    break;
    }
    }
    return 0;
    }

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

      I think it wasn't correct plz check it

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

      @@itzmesuhail4948
      this is the correct one
      int main()
      {
      while(1) {
      int number;
      printf("Enter a number:");
      scanf("%d", &number);
      if (number > 0) {
      break;
      }
      if ((number % 3) != 0){
      continue;
      }
      printf("%d
      ", number);
      }
      return 0;
      }

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

      @@shamsrahmantabish9299 Did you use the continue function?

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

    Your explanations are simplified. Thank you!

  • @stealthy_doctor
    @stealthy_doctor 6 месяцев назад

    this has been a wonderful beginning to C, thank you so much!!!
    i think the answer is B. continue ?
    #include
    int main() {
    while(1){
    int number;
    printf("Enter a Number: ");
    scanf("%d",&number);
    if(number>0){
    printf("Positive Value
    ");
    break;
    }
    if((number%2)!= 0){
    printf("%d
    ",number);
    continue;
    }
    printf("Negative Even
    ");
    }
    return 0;
    }

  • @ScottBisong
    @ScottBisong 2 дня назад

    this particular queestion came for my exams

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

    Option B : Continue
    -----------------------------------------------------------------------------------------
    #include
    int main ()
    {
    int num;
    while (1)
    {
    printf("
    Enter A Number : ");
    scanf("%d", &num);
    if (num < 0)
    {
    if (num % 2 == 0)
    {
    printf("Negative Even Number");
    continue;
    }
    else
    {
    printf("%d", num);
    }
    }
    else
    {
    printf("Positive Number");
    break;
    }
    }
    return 0;
    }

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

    09:29 Programming Task
    #include
    int main()
    {
    int i,j=0;
    while(j

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

      /*Improved version of your code,
      Execute it to check*/
      #include
      int main()
      {
      label:
      int i;
      char choice;
      printf("
      Enter a value: ");
      scanf("%d",&i);
      if(i0)
      {
      if(i%2==0)
      printf("Positive even number
      ");
      else
      printf("Positive odd number
      ");
      }
      else
      {
      printf("Neither be negitive or positive
      ");
      }
      printf("More numbers??
      ");
      Label:
      scanf(" %c", &choice);
      if(choice=='y' || choice=='Y')
      {
      goto label;
      }
      else if(choice=='n' || choice=='N')
      {
      return 1;
      }
      else
      {
      printf("Answer in Y=Yes or N=No
      ");
      goto Label;
      }
      return 0;
      }
      //Hello

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

    Thank you for posting valuable content of C programming..

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

    This was super helpful! Thank you.

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

    // Online C compiler to run C program online
    #include
    int main() {
    while(1){
    int number;
    printf("Enter the number =");
    scanf("%d",&number);
    if(number>0){
    printf("
    positive value");
    break;
    }
    if((number% -2) ==0){
    printf("negavtive even
    ");
    continue;
    }
    printf("%d
    ",number);
    }
    return 0;
    }

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

    //A Program that takes input and prints if the value is a Negative odd number
    #include
    int main(){
    while (1){
    int number;
    printf("Enter a number: ");
    scanf("%d",&number);
    if (number>0) {
    printf("Positive Value");
    break ;
    }
    if (number

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

    These videos are very helpful. ThankYou!

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

    amazing teacher🥰

  • @Ech-chatouiMohammed
    @Ech-chatouiMohammed 2 месяца назад

    great way of explanation , thanks a lot

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

    This video is most valuble for programming beginners ❤️ can you do video for c programming functions ? 🌸😊

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

      Our next video is on C Function. Do check it out on coming Wednesday. Thankyou for Watching !

  • @gamingnon-stop8167
    @gamingnon-stop8167 2 года назад +2

    QUIZ answer: continue
    PROGRAMMING TASK :
    #include
    #include
    /*
    Author - Aryan Phatarpekar
    Date - Sun 23 Oct 2022
    */
    main()
    {
    // declaring the variables
    int number;

    while(1)
    {
    // asking user to enter the number
    printf("Enter a number
    ");
    scanf("%d", &number);

    // checking the condition, if the number is greater than 0 priting the message it is a positive number & breaking the loop.
    if(number > 0)
    {
    printf("%d is a positive number, Please enter a a negative value
    ", number);
    break;
    }

    /*
    if the number is less than 0(negative number) than making calculations on that number.
    dividing that number by 2 with modulus operator(%) and checking the remainder.
    remainder 0 means it is a -ve even number and continuing the code but remainder is 1 then it is a -ve odd and printing the message it is -ve odd number and breaking the loop.
    */
    else
    {
    if(number < 0 && number % 2 == 0)
    {
    printf("%d is a negative even
    ", number);
    continue;
    }

    else
    {
    printf("YES ! %d is negative Odd number
    ", number);
    break;
    }
    }
    }
    }

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

    Great video. Thank you

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

    answer of quiz: Continue

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

    programming Task
    #include
    int main() {
    while(1){
    int number;
    printf("
    Enter a number:");
    scanf("%d",&number);
    if(number>0){
    printf("Positive Value");
    continue;
    }
    if(number

  • @behailus-tube5024
    @behailus-tube5024 7 месяцев назад

    programming task
    #include
    int main() {
    int number;
    printf("enter the number: ");
    scanf("%d", &number);
    if(number %2 = 1) {
    printf("
    the value is postive");
    }
    return 0;
    }

  • @zetsubou-chan
    @zetsubou-chan 2 года назад +1

    thank you! this helped a lot

  • @crystalsxd
    @crystalsxd Год назад +3

    #include
    int main() {
    while (1) {
    int number;
    printf("Enter a number: ");
    scanf("%d", &number);
    if (number > 0) {
    printf("Positive Value");
    break;
    }
    if ((number % 2) ==0) {
    printf("Negative Even
    ");
    continue;
    }
    printf("%d
    ", number);
    }
    return 0;
    }
    PROGRAMIZ QUIZ ANSWER: B. continue

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

    Videos are awesome as always 💖

  • @SambanaCharmila
    @SambanaCharmila 4 месяца назад +1

    Continue is usedd to skip the current iteration

  • @tnk.1608
    @tnk.1608 Год назад

    My answer:
    #include
    int main ()
    {
    while (1){
    sleep(2);
    int num;
    printf("Enter value of number:
    ");
    scanf("%d", &num);
    if ( num >=0 )
    {
    printf("Positive value
    ");
    break;
    }
    if ( ( num % 2) == 0 )
    {
    printf("Negative even
    ");
    continue;
    }
    printf("Negative odd number: %d
    ", num);
    }
    return 0;
    }

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

    programming task
    #include
    int main() {
    while (1){
    int number;
    printf ("Enter a number: ");
    scanf ("%d", &number);
    if (number>0){
    printf ("Positive Value
    ");
    break;
    }
    if ((number % 2)== 0){
    printf ("Negative Even
    ");
    continue;
    }
    printf ("%d
    ", number);
    }
    return 0;

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

    Thank you so much

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

    thank you programiz team

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

    //programming task
    #include
    int main()
    {
    while(1)
    {
    int num;
    printf("input your num:");
    scanf("%d", &num);
    if(num>0)
    {
    printf("positive value");
    break;
    }
    if((num %2) == 0)
    {
    printf("negative even
    ");
    continue;
    }
    printf("your num is %d
    ", num);
    }
    return 0;
    }

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

    Task program of break and continue statement
    #include //Preprocesssor
    int main(){ // entry point
    while (1){ // for While conditions
    int number; // Declaration of variable
    printf ("Enter the number : "); // to print the number
    scanf ("%d", &number);
    if ( number >= 0){ // for If conditions
    printf ("Positive value
    ");
    break ;
    }
    if (( number % 2) >=0 ){
    printf ("Negative Even
    ");
    continue ;
    }
    printf ("%d
    ", number); // To print the statements
    }
    return 0;
    }

  • @TechyMom-ft
    @TechyMom-ft 2 года назад

    Good one

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

    Thanks a lot guys for your sessions .... thanks @padma

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

    thank you

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

    9:34
    #include
    int main(void)
    {
    int a;
    printf(“Enter number: “);
    scanf(“%d”, &a);
    If ( a < 0 && a % 2 == 1)
    {
    printf(“%d
    ”, a);
    } else if (a > 0)
    {
    printf(“Positive Value.
    ”);
    break;
    } else if (a < 0 && a % 2 == 0)
    {
    printf(“Negative even.
    ”);
    continue;
    }
    return (0);
    }

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

    She is sooooooo good

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

    Great video 🔥🔥🔥

  • @shaheddardas3958
    @shaheddardas3958 4 месяца назад +2

    #include
    int main() {
    while(1){
    int number;
    printf("Enter number here:");
    scanf("%d",&number);
    if(number>0){
    printf("Positive Value
    ");
    break;
    }
    if(number%2==0){
    printf("Negative Even
    ");
    continue;
    }
    printf("%d
    ",number);
    }
    return 0;
    }
    Quiz answer is B. continue

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

    Thanks ma'am

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

    very very good 🤩

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

    10:13 to skip current iteration only, not the whole loop, answer should be B.continue

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

    Thank you 👍 answer is c

    • @whynot.17
      @whynot.17 5 месяцев назад

      answer is b

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

    Tq so much🙏🙏❤️❤️

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

    answer:optiom B (mam)

  • @puritykamane8695
    @puritykamane8695 5 месяцев назад +1

    // Online C compiler to run C program online
    #include
    int sum = 0;
    int main() {
    while (1) {
    int number;
    printf("Enter a number: ");
    scanf("%d", &number);
    if (number < 0 && number % 2 != 0) {
    printf("%d
    ", number);
    } if (number < 0 && number % 2 == 0){
    printf("Negative even
    ");
    continue;
    } if (number >= 0) {
    printf("positive value");
    break;
    }
    }
    return 0;
    }

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

    Thank you!!!

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

    Thanks

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

    opt B - continue

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

    Hi, I like to print numbers 1 to 25 in five rows and 5 columns continuously and wish ‘22’ and ‘23’ to be skipped, using the ‘continue’ in a for loop as follows:
    #include
    #include
    int main()
    {
    int i,j,n=5;
    int x=1;
    for (i=1;i

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

      Hey, I'm not sure if continue works in this case because you have to print something for the numbers 22 and 23 and if you skip them in the code you also skip the "x++" part. Here is what worked for me, hopefully you can modify it for your needs:
      //#define _CRT_SECURE_NO_WARNINGS
      //#include
      //
      //int main()
      //{
      // int i, j, n = 5;
      // int x = 1;
      // for (i = 1; i

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

      #include
      int main()
      {
      int i,j;
      int x=1;
      for (i=1;i

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

    Option B (continue)

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

    Continue

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

    Answer is B) continue

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

    #include
    int main () {
    while (1) {
    int number;
    printf("
    enter the number: ");
    scanf("%d",&number);
    if(number > 0) {
    printf("
    positive value");
    break;
    }
    if((number%-2) ==0) {
    printf("
    negative even");
    continue;
    }
    printf("%d
    ",number);
    }
    return 0;
    }

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

    PROGRAMMING TASK SOLUTION
    int main() {
    while (1) {
    int number;
    printf("Enter a number: ");
    scanf("%d", &number);
    if (number > 0) {
    printf("Number is positive");
    break;
    }
    if (number < 0 && number % -2 == 0) {
    printf("Negative even
    ");
    continue;
    }
    printf("%d
    ", number);
    }
    }

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

    🔥🔥🔥🔥🔥

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

    Answer:b

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

    B is correct

  • @VarshiniSDevadiga-h5q
    @VarshiniSDevadiga-h5q 20 дней назад

    option B continue

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

    #include
    int main() {
    // Write C code here
    while(1){
    int number;
    printf("Enter the number: ");
    scanf("%d", &number);
    if (number>0){
    printf("possitive value");
    break;
    }
    if (number

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

    My Answer is B # continue

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

    Hi Padma, unfortunately my code for printing positive numbers keeps saying number is undeclared yet it’s the same as yours

  • @VenkataNarisetty-s7m
    @VenkataNarisetty-s7m 3 месяца назад

    Break

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

    B. Continue

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

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

    Quiz: B

  • @STRANGER-vv2qf
    @STRANGER-vv2qf 2 года назад

    #include
    int main() {
    while(1){
    int number;
    printf("
    enter a value:");
    scanf("%d",&number);
    if(number0){
    printf("positive value");
    break;
    }
    if(number

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

    the answer is C, continue.

  • @_.narr._.03
    @_.narr._.03 2 года назад +1

    Programming task :-
    #include
    int main()
    {
    while (1)
    {
    int n;
    printf("Enter any number: ");
    scanf("%d", &n);
    if (n >= 0)
    {
    printf("Positive value!
    ");
    break;
    }
    if (n % 2 == 0)
    {
    printf("Negative even!
    ");
    continue;
    }
    }
    return 0;
    }

  • @franchezke2351
    @franchezke2351 Год назад +3

    1 #include
    2 int main(void)
    3 {
    4 while (1)
    5 {
    6 int number;
    7 printf("Enter the number: ");
    8 scanf("%d", &number);
    9 if (number > 0)
    10 {
    11 printf("Positive Value
    ");
    12 break;
    13 }
    14 if (number < 0 && number % 2 == 0)
    15 {
    16 printf("Negative Even
    ");
    17 continue;
    18 }
    19 else
    20 {
    21 printf("%d
    ", number);
    22 }
    23
    24 }
    25 return (0);
    26 }

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

    ❤❤❤

  • @bullshit485
    @bullshit485 29 дней назад

    The Answer is B, Continue.

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

    #include
    int main() {
    while(1){
    int num;
    printf("Enter a number:
    ");
    scanf("%d", &num);
    if (num > 0){
    printf("Positive Value
    ");
    break;
    }
    if (num %2== 0){
    printf("Negative Even
    ");
    continue;
    }
    printf("%d
    ", num);
    }
    return 0;
    }

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

    Ma'am at 5:53 in one place i=1 and other place i==3
    For equal to two sign are used what's the reason ?

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

      i=1 here ''='' is assignment operator..means in the box of i we are keeping value ''1''...i==1 means equating i with 1...hope this helps🙂

  • @haxurn-h4l
    @haxurn-h4l Год назад

    #include
    int main() {
    int number;
    while (1) {
    printf("Enter number value: ");
    scanf("%d", &number);
    if (number == 0) {
    break;
    }
    if (number > 0) {
    if (number % 2 == 0) {
    printf("Positive even number
    ");
    } else {
    printf("Positive odd number
    ");
    }
    } else {
    if (number % 2 == 0) {
    printf("Negative even number
    ");
    } else {
    printf("Negative odd number
    ");
    }
    }
    }
    return 0;
    }

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

    while (1) {
    int number ;
    printf (" Enter a number : ") ;
    scanf ("%d", &number) ;

    if ( number > 0) {
    printf(" Postive value ") ;
    break ;
    }
    if ( number % 2 == 0) {
    printf(" Negative even :
    ");
    continue ;
    }
    if ( number % 2 != 0) {
    printf(" Negative odd :
    ");
    continue;
    }
    else printf("invalid number : %d
    ", number);

    }
    return 0 ;
    }

  • @Selcuk._._
    @Selcuk._._ 7 месяцев назад

    /*Can you write a program that takes an input
    from the user and prints it if the value is a
    negative odd number ?
    • If the input value is positive, end the loop with
    message, Positive Value.
    • If the input value is negative even, skip the
    value with message Negative Even.*/
    while (1) {
    int num;
    printf("enter number: ");
    scanf_s("%d", &num);
    if (num > 0) {
    printf("Positive Value
    ");
    break;
    } else if (num == 0) {
    printf("Zero is not even or odd, loop continue
    ");
    continue;
    } else if (num % 2 == 0) {
    printf("Negative Even
    ");
    continue;
    }else
    printf("\t\t\t%d
    ",num);
    }

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

    🙏🏽

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

    answer is "B"

  • @BharatThakor-bu8pq
    @BharatThakor-bu8pq 5 месяцев назад

    The answer is Continue..

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

    Option b mam

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

    while(1){
    int number;
    printf("Enter a number: ");
    scanf("%d",&number);
    if(number

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

    The value of "CHEERIO" 🤣🤣🤣🤣🤣!!

  • @k.osquared1315
    @k.osquared1315 9 месяцев назад

    answer is continue

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

    int main() {
    int x;
    while(1){
    printf("
    Enter a number : ");
    scanf("%d", &x);
    if (x>0){
    printf("Positive Value");
    break;
    }
    if (x%2 == 0){
    printf("Negative even");
    continue;
    }
    printf("Number %d",x);
    }
    return 0;
    }

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

    #include
    int main(){
    int i;
    while(1){
    int i;
    printf("
    Please type a value: ");
    scanf("%d", &i);
    if(i >= 0){
    printf("
    Positive Even
    ");
    break;
    }
    if(i < 0 && i % 2 != 0){
    continue;
    }
    printf("
    Negative Even
    ");
    }
    return 0;
    }
    I find this solution better because there would be no need for continue if you use else or else if

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

    🤗🤗

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

    //Can you write a prpgram that takes an input from the user and prints it if the value is a negative odd number?
    //*If the input value is positive, end the loop with message, 'Positive Value'
    //*If the input value is negative even, skip the value with message 'Negative Even'
    #include
    int main(){
    while (1)
    {

    int number;
    printf("Enter a number: ");
    scanf("%d", &number);
    if(number < 0 && number%2 !=0){
    printf("%d
    ", number);
    }
    else if(number < 0 && number%2 ==0){
    printf("Negative Even
    ");
    }else{
    printf("Positive Value
    ");
    break;
    }
    }

    return 0;
    }
    //Programiz quiz answer
    B. continue

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

    In 9:00 , do not write a float number 😅

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

    #include
    int main() {
    // Write C code here
    while(1){
    int number;
    printf("enter number please");
    scanf("%d",&number);
    if(number>0){
    printf("posititive value
    ");
    }else if(number0){
    break;
    }
    }
    return 0;
    }

  • @HoangDo-yv1yw
    @HoangDo-yv1yw Год назад

    like 👍👍

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

    answer is B.

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

    B

  • @manaswini3256
    @manaswini3256 Год назад +13

    My frnd tanusri made me shift from Jenny to Padma...Padma>>>>jenny

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

    int main() {
    int number;
    while (1){
    printf("Enter a number: ");
    scanf("%d", &number);
    if (number > 0) {
    printf("Positive Value
    ");
    break;
    } else if ((number % 2) == 0){
    printf("Negative Even
    ");
    continue;
    }
    else {
    printf("%d
    ", number);
    }
    }
    }

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

    #include
    using namespace std;
    int main()
    {
    while (1)
    {
    int value;
    cout > value;
    if (value < 0 && value % 2 != 0)
    {
    cout

  • @GamingMlbb-q2f
    @GamingMlbb-q2f 3 месяца назад

    B.continue;