🚀 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
@hamidabdimurodov77836 ай бұрын
#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?
@munasherwizi7383 ай бұрын
❤❤❤
@user-nt4nm4fb3u Жыл бұрын
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.
@awesomeswordsman8231 Жыл бұрын
you and bro code might be the best coding teachers out there that can explain this 👍
@vexpomegran90442 жыл бұрын
no teacher at university explains these so well🖤🖤🖤
@harshadatapre21333 жыл бұрын
//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; } }
@devarapallivamsi29812 жыл бұрын
thank you by the way at the the end return 0;
@kothakotasrinivasarao5082 Жыл бұрын
@@devarapallivamsi2981 why while(1)
@devarapallivamsi2981 Жыл бұрын
@@kothakotasrinivasarao5082 here, We need the loop to run without any condition(for the first time). So, we give while(1) which refers to True
@msreekanth88869 ай бұрын
wtf
@marusukech.50493 жыл бұрын
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; }
@itzmesuhail49482 жыл бұрын
I think it wasn't correct plz check it
@shamsrahmantabish92992 жыл бұрын
@@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; }
@bullstefano43522 жыл бұрын
@@shamsrahmantabish9299 Did you use the continue function?
@stealthy_doctor8 ай бұрын
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; }
@davradev998 ай бұрын
thanks
@chitturoyal77502 жыл бұрын
09:29 Programming Task #include int main() { int i,j=0; while(j
@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
@OgaPita2 жыл бұрын
Your explanations are simplified. Thank you!
@programizstudios3 жыл бұрын
Q. Which of the following keywords is used to skip the current iteration of a loop ? A. skip B. continue C. break D. loop
@apurbabera96823 жыл бұрын
break
@apurbabera96823 жыл бұрын
Mam please tell me solution Write a C program to add two number using static number ?
@sujit_ghimire3 жыл бұрын
@@apurbabera9682 do some research or else drop the course.
@matthartley29343 жыл бұрын
Skip ?
@harshadatapre21333 жыл бұрын
B. continue
@rythmflow15143 жыл бұрын
This video is most valuble for programming beginners ❤️ can you do video for c programming functions ? 🌸😊
@programizstudios3 жыл бұрын
Our next video is on C Function. Do check it out on coming Wednesday. Thankyou for Watching !
@ashutoshurkudkar10803 жыл бұрын
Videos are awesome as always 💖
@programizstudios3 жыл бұрын
Thankyou
@b7sh_b7sh Жыл бұрын
amazing teacher🥰
@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); }
@davidjabulani630Ай бұрын
wonderful video
@yunghan17543 ай бұрын
10:13 to skip current iteration only, not the whole loop, answer should be B.continue
@lalith_kumar_akhila24113 жыл бұрын
Thank you for posting valuable content of C programming..
@oissimouni7726 Жыл бұрын
//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
@matthartley29343 жыл бұрын
This was super helpful! Thank you.
@vishalkadkal Жыл бұрын
// 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; }
@pranavsilla6 ай бұрын
These videos are very helpful. ThankYou!
@ScottBisong2 ай бұрын
this particular queestion came for my exams
@crystalsxd Жыл бұрын
#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
@Ech-chatouiMohammed4 ай бұрын
great way of explanation , thanks a lot
@tnk.16082 жыл бұрын
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; }
@nihatdonmzov41662 жыл бұрын
Great video. Thank you
@zetsubou-chan2 жыл бұрын
thank you! this helped a lot
@onic9623 Жыл бұрын
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; }
@vikkyd67073 жыл бұрын
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_akhila24113 жыл бұрын
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🙂
@adityajain9439 Жыл бұрын
Thank you 👍 answer is c
@whynot.177 ай бұрын
answer is b
@behailus-tube502410 ай бұрын
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; }
@FaroOqi_2003 Жыл бұрын
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
@vintrixtergunot80647 ай бұрын
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;
@shrur3527 Жыл бұрын
Tq so much🙏🙏❤️❤️
@emmanuelarthur30812 жыл бұрын
Great video 🔥🔥🔥
@devarapallivamsi29812 жыл бұрын
thank you programiz team
@nihatdonmzov41662 жыл бұрын
Thank you so much
@mv86722 жыл бұрын
//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; }
@shaheddardas39586 ай бұрын
#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
@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; }
@SambanaCharmila6 ай бұрын
Continue is usedd to skip the current iteration
@sahalyoosuf Жыл бұрын
Thanks a lot guys for your sessions .... thanks @padma
@gamingnon-stop81672 жыл бұрын
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; } } } }
@ak74u662 жыл бұрын
very very good 🤩
@tshedzanembilwi45725 ай бұрын
She is sooooooo good
@TechyMom-ft3 жыл бұрын
Good one
@rancho1212 жыл бұрын
Thanks ma'am
@devarapallivamsi29812 жыл бұрын
thank you
@Sickpisspakh23971 Жыл бұрын
Thank you!!!
@karunanithir15102 жыл бұрын
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
@Himerosteam2 жыл бұрын
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
@ishaangupta235311 ай бұрын
#include int main() { int i,j; int x=1; for (i=1;i
@lyricsmanprottoy2 жыл бұрын
answer of quiz: Continue
@mohammadabdullahaalforhad1375 Жыл бұрын
Thanks
@viralfoodies18862 жыл бұрын
answer:optiom B (mam)
@cheftelma82412 жыл бұрын
Hi Padma, unfortunately my code for printing positive numbers keeps saying number is undeclared yet it’s the same as yours
@timothykuria67692 жыл бұрын
1 #include 2 3 int main(void) 4 { 5 while(1){ 6 int number; 7 printf("Enter a number: "); 8 scanf("%d", &number); 9 10 if(number < 0 && (number % 2) != 0){ 11 printf("%d ", number); 12 break; 13 } 14 if(number < 0 && (number % 2) == 0){ 15 printf("Negative even "); 16 continue; 17 } 18 printf("Positive value "); 19 } 20 21 return (0); 22 } I used that and works is it okay?
@zen_zaf3 ай бұрын
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 ; }
@barkhadibraahim10232 жыл бұрын
#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 Жыл бұрын
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); } }
@ritutomar62682 жыл бұрын
Option B (continue)
@puritykamane86958 ай бұрын
// 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; }
@yogithabale7 ай бұрын
opt B - continue
@rancho1212 жыл бұрын
Continue
@balashebjadhav977 Жыл бұрын
Answer is B) continue
@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
@KageraTanzaniaАй бұрын
Answer is B. continue
@mrwalker856111 ай бұрын
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; }
@nuetrkn2 жыл бұрын
🔥🔥🔥🔥🔥
@Selcuk._._9 ай бұрын
/*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); }
@jokiiex4563 Жыл бұрын
In 9:00 , do not write a float number 😅
@franchezke2351 Жыл бұрын
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 }
@Themyth24665 Жыл бұрын
Perfect bro
@VarshiniSDevadiga-h5q2 ай бұрын
option B continue
@vinaykumarvinaykumar20062 жыл бұрын
My Answer is B # continue
@sawewfelipe74807 ай бұрын
the answer is C, continue.
@yadlaaravind8112 жыл бұрын
Answer:b
@VictoriaOtunsha2 жыл бұрын
#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; }
@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
@STRANGER-vv2qf2 жыл бұрын
#include int main() { while(1){ int number; printf(" enter a value:"); scanf("%d",&number); if(number0){ printf("positive value"); break; } if(number
@furkanakdag7644 Жыл бұрын
answer is "B"
@hopeloft Жыл бұрын
#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; }
@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
@racingfan3723 жыл бұрын
B is correct
@bullshit4853 ай бұрын
The Answer is B, Continue.
@mohammadabdullahaalforhad1375 Жыл бұрын
B. Continue
@seabasschukwu6988 Жыл бұрын
❤❤❤
@k.osquared131511 ай бұрын
answer is continue
@_.narr._.032 жыл бұрын
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; }
@aboutouruniverse3834 Жыл бұрын
Quiz: B
@NaijaBaronYT Жыл бұрын
🙏🏽
@TheMGIvideos10 ай бұрын
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); } } }
@bhavanaanu90763 жыл бұрын
Option b mam
@benpalma83222 жыл бұрын
#include using namespace std; int main() { while (1) { int value; cout > value; if (value < 0 && value % 2 != 0) { cout
@VenkataNarisetty-s7m6 ай бұрын
Break
@sunnahboy62232 жыл бұрын
while(1){ int number; printf("Enter a number: "); scanf("%d",&number); if(number
@BharatThakor-bu8pq7 ай бұрын
The answer is Continue..
@HoangDo-yv1yw Жыл бұрын
like 👍👍
@albertamenyah3019 Жыл бұрын
answer is B.
@luckev35943 жыл бұрын
🤗🤗
@alanizaguirre46702 жыл бұрын
The value of "CHEERIO" 🤣🤣🤣🤣🤣!!
@davidjabulani630Ай бұрын
int x; while(1){ printf(" Please enter number:"); scanf("%d",&x); if(x>0){ printf("Positive Value"); break; } if((x%3)!=0){ printf("Negative Even"); continue; } printf("%d",x); }
@manaswini3256 Жыл бұрын
My frnd tanusri made me shift from Jenny to Padma...Padma>>>>jenny