Тёмный

#9: If Else Statements in C | C Programming for Beginners 

Programiz
Подписаться 174 тыс.
Просмотров 197 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 403   
@programizstudios
@programizstudios 2 года назад
🔥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
@epeelea1
@epeelea1 Год назад
Qq
@henryalbrightekenimdeokpos905
@henryalbrightekenimdeokpos905 4 месяца назад
OKAY THANK YOU
@yunandaraung2556
@yunandaraung2556 Год назад
You explain a lot better than my professor from college. Thanks for making things easier!
@marwaneharris4460
@marwaneharris4460 11 месяцев назад
how you did after 11 months?
@miarose5382
@miarose5382 2 года назад
Answer is A : Inside if
@elijahnguyo-j6v
@elijahnguyo-j6v Месяц назад
answer is B
@srpcdgaming
@srpcdgaming Год назад
The answer is A: inside if Also love your tutorials they're amazing. Keep it up👍
@purpleocean5670
@purpleocean5670 10 месяцев назад
no the answer will be inside else because a%2=1
@MeowwJane
@MeowwJane 4 месяца назад
@@purpleocean5670but it has the not symbol (!) so it's reversed
@fountain9886
@fountain9886 Год назад
i do not know why university Professors are making these easy lessons so much difficult and unbearing, Thank you @programiz
@erl2nd
@erl2nd Год назад
Your work is immaculate efficient and you are truly an inspiration. I was not doing well at all at University of but now you have given Me new hope. Thank you!!!
@user-tz1wb2gt7n
@user-tz1wb2gt7n Год назад
Mind If I ask how you did ?
@erl2nd
@erl2nd 11 месяцев назад
@@user-tz1wb2gt7n actually wound up in Fall: 1B in the "C" programing and 1C for Calculus dropped psychology, But in Spring '23 all A's for 4classes 12 semester hours the 2nd Semester, I left that University to become a pilot all A's Fall Semester start ground and flight ✈️ labs Jan '24, Thanks for asking! Hope you are well and thank you for being there.
@Tatchim
@Tatchim Год назад
#include #include //déclaration of variable int main() { double number; printf("enter a double number"); scanf("%lf",&number); if(number>0){ printf("number is positive");} else if(number
@Pop_shorts_369
@Pop_shorts_369 7 месяцев назад
Good job
@danieldaniekl6222
@danieldaniekl6222 29 дней назад
else if(number
@najiibjama9906
@najiibjama9906 7 дней назад
@@danieldaniekl6222 Have you understood the question? The guy followed the instructions of the question but you ...
@krishsharma162
@krishsharma162 2 года назад
Ma'am, these lectures are very helpful.
@nickjonaz3710
@nickjonaz3710 Год назад
God bless u ma’am. I love how she explains things very fluently ✍🏾
@MarkjonelDumlao
@MarkjonelDumlao 4 дня назад
Better explanation than my professor teacher😊
@like_a_boss881
@like_a_boss881 Год назад
answer is A (inside if).....I love your channel by the way....keep it up.!
@With.h
@With.h Год назад
Thank youuu it was helpfull int main() { double number; printf("Enter The Number:"); scanf("%lf",&number); if (number>0){ printf("The Number is Positive!"); } else if(number
@aysham.8398
@aysham.8398 Год назад
I tried to watch different video on the topic but this one is different and concise. Thank you ms!
@neetdiagramacticlearning4173
my life saviour...u made me develop interest in c by taking away my aversion..thanks mam
@henryalbrightekenimdeokpos905
@henryalbrightekenimdeokpos905 4 месяца назад
Wow, This video Really Helped me in understanding the if/else statements in C. Thank You @programiz for these lessons, God Bless You
@AlaskarAbdoul
@AlaskarAbdoul Год назад
/* Can you create a program to check whether a number is positive or negative or 0? To create this program, create a variable named number and assign a double value to it based on the user input. Then using an if statement, check if the number variable is positive or negative or 0. > If number is positive, print"The number is positive" > If number is negative, print"The number is negative" > If number is 0, print "The number is Zero" */ #include int main() { double number; printf("Please write your number and I will let you know if its positive number, zero, or negative number: "); scanf("%lf", &number); if (number < 0){ printf("The number is negative."); } else if (number == 0){ printf("The number is Zero."); } else if (number > 0){ printf("the number is positive."); } return 0; }
@alirezaz9896
@alirezaz9896 2 года назад
one of the best c tutorials i have ever seen!!😊😊
@akibiswhere
@akibiswhere Год назад
A real beginner - #include int main(){ double number; printf("Enter any number "); scanf("%lf", &number); if(number>=1){ printf("The number is positive"); }else if(number
@emmydee408
@emmydee408 Год назад
Thank you so much for this video ma.... The answer is A (inside if)
@MadCrusherYT_006
@MadCrusherYT_006 20 дней назад
it made my course very easy to compete and in very short time mam Thank you for giving your knowledge for students like us mam
@boramawi
@boramawi 2 года назад
Wonderful Explanation with very short examples which are easy to follow.
@Darkness-898
@Darkness-898 4 месяца назад
PROGRAMIZ QUIZ ANSWER: OPTION(A) Inside if PROGRAMMING TASK GIVEN BY MAM: #include int main() { double num1; printf("Enter a number here: "); scanf("%lf", &num1); if (num1>0){ printf("The number is positive."); } else if (num1==0){ printf("The number is neutral(It is 0)."); } else { printf("The number is negative."); } return 0; }
@AmanGupta-zp5xi
@AmanGupta-zp5xi Год назад
Thank you mam, you have explained wonderfully 😊
@raghumanda2tanush496
@raghumanda2tanush496 2 года назад
really helpful course , simple and effective explanation
@uppilipavitra9634
@uppilipavitra9634 4 месяца назад
#include int main() { int a=-5; if (a0){ printf("The number is positive"); } else { printf("The number is 0"); } return 0; } Mam,Your classes are very helpful us thank you so much mam
@flick-ict2276
@flick-ict2276 2 года назад
I love this video ❤️, I understood it perfectly well
@islemkhelifa-ve7ip
@islemkhelifa-ve7ip Год назад
inside if , thank you teacher, you are the best
@easyorganic1469
@easyorganic1469 Год назад
Mam these videos are very useful. Thank you for helping us. If possible please make a series on c++ language and dsa in it. this will be very benificial for me and many more like me. Thank you.]
@youngsunday8192
@youngsunday8192 Год назад
If Else Statements in c simplified thanks for making it easier 🙂🙂🙂🙂🙂🙂🙂🙂🙂
@cloudproblemssolved
@cloudproblemssolved 5 месяцев назад
my answer for the question at the end: #include int main() { int number = -1; if(number == 0) printf("zero"); else if(number > 0) printf("positive"); else if(number < 0) printf("negative"); return 0; }
@plasmageorge4944
@plasmageorge4944 11 месяцев назад
Thank you
@paulmuchemwa7950
@paulmuchemwa7950 2 года назад
been learning a lot. also the phone application has good notes to refer to
@h.d4632
@h.d4632 2 месяца назад
#include int main() { double number; printf ("Enter a number:"); scanf ("%lf", &number); if (number>0){ printf ("The number %0.2lf is positive",number); } else if (number
@Kevin-w9w
@Kevin-w9w Месяц назад
So easy to understand thanks
@okolieolisafrancis3292
@okolieolisafrancis3292 20 дней назад
Am inspired and it is wonderful
@mondmare9712
@mondmare9712 7 месяцев назад
Maam you are very resourceful and helpful. Im following in Papua New Guinea
@toykeem
@toykeem Год назад
thank you programiz. the answer to the quiz question is option A
@Ech-chatouiMohammed
@Ech-chatouiMohammed Месяц назад
thank you for the explanation
@anasasif8714
@anasasif8714 11 месяцев назад
option A
@nihatdonmzov4166
@nihatdonmzov4166 2 года назад
Thank you so much🙂
@flashman6620
@flashman6620 2 года назад
It,s amazing thank you for your efforts
@3v1lm4nipul4t0r
@3v1lm4nipul4t0r Год назад
You are the best. You made fall inlove with proogramming
@Bahaa.shaalan
@Bahaa.shaalan Год назад
#include int main(void) { double tempareture=-12; if(tempareture>=1){ printf("tempareture pasitive"); } else if(tempareture
@JoshuaOgugua
@JoshuaOgugua Год назад
I love the simplicity
@ritiksingh1484
@ritiksingh1484 Год назад
Love Your Voice ☺
@LearnEnglishThrough_Podcast
@LearnEnglishThrough_Podcast 2 года назад
Amazing explanation
@programizstudios
@programizstudios 2 года назад
Q. What is the output of the following code? #include int main() { int a = 5; if (!(a % 2 == 0)) { printf("Inside if"); } else { printf("Inside else"); } return 0; }
@metheshortgirlishika
@metheshortgirlishika 2 года назад
Output:-) inside if
@harshadatapre2133
@harshadatapre2133 2 года назад
A. Inside if
@my_talks01
@my_talks01 2 года назад
insideif
@arhitjoseph9681
@arhitjoseph9681 2 года назад
@@my_talks01 how bro?
@my_talks01
@my_talks01 2 года назад
@@arhitjoseph9681 a%2=1 ! (a%2==0) condition is true because a%2 is not equal to zero, so body of if statement exicuted , hence we can say , "inside if" printed .
@d3vyn22
@d3vyn22 Год назад
u make c easy
@bilolnorqobilov5396
@bilolnorqobilov5396 2 года назад
int main() { double number; printf("Enter the number: ", number); scanf("%lf", &number); if(number>0){ printf("positive number"); } else if(number
@tanmaykumartewary2166
@tanmaykumartewary2166 2 года назад
This course is really very helpful...plz increase the video frequency.
@programizstudios
@programizstudios 2 года назад
Thank you! We appreciate your thoughts.
@raghavendrarao6973
@raghavendrarao6973 2 года назад
thanks a lot maam , your videos are very helpful
@programizstudios
@programizstudios 2 года назад
thanks, really nice to hear this
@tambirogerenow5863
@tambirogerenow5863 6 месяцев назад
Yeah yeah! 😊 its amazing lecture, the lecture was supper explicit Thanks, l like your working background, it's clear, l wish it can be clearer
@UddhavBanik
@UddhavBanik 3 месяца назад
Programming task :--- #include int main() { double number; printf("Enter number : "); scanf("%lf",&number); if (number > 0) printf("The number is positive"); else if(number < 0) printf("The number is negative"); else if(number == 0) printf("The number is zero"); return 0; }
@TewodrosBaye1
@TewodrosBaye1 Год назад
The cutest programming teacher ever. Thanks for making it easier to understand.
@olisaemekaaghabuilo8688
@olisaemekaaghabuilo8688 Год назад
A. because the ! will evaluate the if condition to true thereby making the program print "inside if"
@nihatdonmzov4166
@nihatdonmzov4166 2 года назад
Very helpful
@ALShareem
@ALShareem Месяц назад
her smile in start of video and at last oh my god just beautiful
@tambirogerenow5863
@tambirogerenow5863 6 месяцев назад
Please can you make videos too on C++,java and python?
@sychok958
@sychok958 2 года назад
Video is helpful and understadable~~thanksss a lot
@itsme_maniiee
@itsme_maniiee Год назад
Can we use ( else ) again n again ?
@firedragonmangaming2410
@firedragonmangaming2410 2 года назад
#include int main(){ double number1; printf("Enter a decimal number: "); scanf("%lf", &number1); if (number1 > 0){ printf("Positive number"); } else if (number1 < 0){ printf("Negative number"); } else if (number1 == 0){ printf("Number is Zero"); } return 0; }
@pristinewalek4578
@pristinewalek4578 2 года назад
Answer is Inside if
@syedadil799
@syedadil799 2 года назад
Thanks a lot
@Usmankhan-q8z5s
@Usmankhan-q8z5s Год назад
I really inspired to your lecture ❤
@ivzeee
@ivzeee Год назад
Thanks
@GideonMwangi-wp4up
@GideonMwangi-wp4up 4 месяца назад
Nyce program
@ganeshbabubandi8886
@ganeshbabubandi8886 2 года назад
b) inside else
@nihatdonmzov4166
@nihatdonmzov4166 2 года назад
Great video
@devarapallivamsi2981
@devarapallivamsi2981 2 года назад
#include int main() { printf("Thank you programiz team"); return 0; }
@victorcoded
@victorcoded Год назад
inside if great work
@blaugranalvent
@blaugranalvent Год назад
thank you for your amazing work
@ankyhiggs1617
@ankyhiggs1617 2 года назад
Mam plz upload videos daily
@doctor2345
@doctor2345 10 месяцев назад
extremely helpful. keep it up!
@Girma_Chew
@Girma_Chew 2 года назад
// Online C compiler to run C program online /*This is a program to check whether a number is a positive, negative or a zero.*/ #include int main() { double number; printf("Enter any number: "); scanf("%lf", &number); if(number>0) { printf("The number %.2lf is positive.",number); } if(number==0) { printf("The number %.2lf is Zero.",number); } if(number
@kidsstorytime1573
@kidsstorytime1573 Год назад
Answer to quiz is A #include int main() { // Write C code here double number; printf("what is your number? "); scanf("%lf", &number); if(number > 0){ printf("The number is positive"); } if(number < 0){ printf("The number is negative"); } if(number ==0){ printf("The number is 0"); } return 0; }
@jaganr6351
@jaganr6351 2 года назад
It is helpful,upload more videos mam
@crissl6738
@crissl6738 Год назад
Mine brings back both printf statements unless i remove the other if statement
@ishikasoni1305
@ishikasoni1305 2 года назад
Ma'am plz upload videos fast it will be beneficial
@v.gkillergaming6973
@v.gkillergaming6973 Год назад
here the answer for your task mam thanks for teaching c easily #include int main() { double num; printf("enter the number :"); scanf("%lf", &num); if(num > 0) { printf("positve"); } if(num == 0) { printf("the number is 0"); } else if(num
@joyanvaso3251
@joyanvaso3251 10 месяцев назад
Can I ask, if you are going to run a program of if else statement uhhmm it's not needed to put a user input to it? Orrr yeah need to, I'm confuse😅
@saqibmalik5186
@saqibmalik5186 2 года назад
thanks 💥😍
@Usmankhan-q8z5s
@Usmankhan-q8z5s Год назад
You are amazing ❤
@Tatchim
@Tatchim Год назад
If possible please make similar tutorials for java and kotlin
@SambanaCharmila
@SambanaCharmila 3 месяца назад
Option A is correct
@kajialbums7421
@kajialbums7421 11 месяцев назад
its inside if, because the ! is logical not true and since the operative number is 0 than its right, unless the operative number is not 0. correct me if I missed something.
@someshjitu4546
@someshjitu4546 2 года назад
Nice 👍
@ehathesham_003
@ehathesham_003 2 года назад
answer is "Inside if" option:A
@shadhil3144
@shadhil3144 2 года назад
Please upload a series tutoring java script
@worldgeography2537
@worldgeography2537 Год назад
Answer is (A) =inside if
@samoboii
@samoboii Год назад
ANSWERS Task: double number; printf("please enter a number: "); scanf("%lf", &number); if (number > 0) { printf("this number is positive"); } else if (number < 0) { printf("this number is negative"); } else { printf("this number is 0"); } Quiz: inside if
@ps.vlog4817
@ps.vlog4817 7 месяцев назад
Inside else because using ! (a%2==0)
@yadlaaravind811
@yadlaaravind811 Год назад
Answer:a=inside if
@toufiqulislamtusar5265
@toufiqulislamtusar5265 Год назад
#include #include int main() { double number ; printf("Input number:"); scanf("%lf",&number); if(number > 0){ printf("The number is positive"); } if(number == 0){ printf("The number is zero"); } if(number < 0){ printf("The number is negetive"); } }
@sirishasaragadam7603
@sirishasaragadam7603 2 года назад
wt is the difference between if and else if
@programizstudios
@programizstudios 2 года назад
else if condition is used in if else statement only if there are multiple conditions and else if condition is executed only "if condition" was false. There are many differences you can visit our tutorial to get more ideas. www.programiz.com/c-programming/c-if-else-statement
@sirishasaragadam7603
@sirishasaragadam7603 2 года назад
@@programizstudios Thank u mam
@gunes54
@gunes54 6 месяцев назад
Answer is A (Inside if)
@subhajitNath0
@subhajitNath0 2 года назад
Ma'am, it would have been nice to finish the course a little early
@programizstudios
@programizstudios 2 года назад
Thank you! We appreciate your thoughts. We post video every week on Wednesday. So stay tuned for next video.
@Something-x2w
@Something-x2w 7 месяцев назад
The answer is A
@bandulajagathkumara1038
@bandulajagathkumara1038 Год назад
#include int main(void) { // Variable deceleration int num; // User inputs printf("Enter a number : "); scanf("%d",&num); // Condition 01 if(num > 0) { printf("number %d is positive",num); } // Condition 02 else if(num < 0){ printf("number %d is negative",num); } // Condition 03 else if(num == 0){ printf("number %d is equal to 0",num); } }
@balashebjadhav977
@balashebjadhav977 Год назад
Answer is A) inside if
@xhessa-e2h
@xhessa-e2h 15 дней назад
thank you so much for this‚ it really help :,>
Далее
aespa 에스파 'Whiplash' MV
03:11
Просмотров 7 млн
Coding Was HARD Until I Learned These 5 Things...
8:34
C_29 Nested If in C | C Programming Tutorials
15:07
Просмотров 219 тыс.
why are switch statements so HECKIN fast?
11:03
Просмотров 417 тыс.
#8: Boolean and Comparison Operators in C Programming
14:41
Why You Shouldn't Nest Your Code
8:30
Просмотров 2,7 млн
Conditionals (if-else, Nested if and else if)
8:10
Просмотров 363 тыс.
#15  C Functions | C Programming for Beginners
17:21
Просмотров 217 тыс.
How I Would Learn To Code (If I Could Start Over)
13:43
aespa 에스파 'Whiplash' MV
03:11
Просмотров 7 млн