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

  Рет қаралды 208,261

Programiz

Programiz

Күн бұрын

Пікірлер: 411
@programizstudios
@programizstudios 2 жыл бұрын
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
@epeelea1
@epeelea1 Жыл бұрын
Qq
@henryalbrightekenimdeokpos905
@henryalbrightekenimdeokpos905 6 ай бұрын
OKAY THANK YOU
@miarose5382
@miarose5382 3 жыл бұрын
Answer is A : Inside if
@elijahnguyo-j6v
@elijahnguyo-j6v 2 ай бұрын
answer is B
@yunandaraung2556
@yunandaraung2556 2 жыл бұрын
You explain a lot better than my professor from college. Thanks for making things easier!
@marwaneharris4460
@marwaneharris4460 Жыл бұрын
how you did after 11 months?
@fountain9886
@fountain9886 Жыл бұрын
i do not know why university Professors are making these easy lessons so much difficult and unbearing, Thank you @programiz
@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 9 ай бұрын
Good job
@danieldaniekl6222
@danieldaniekl6222 2 ай бұрын
else if(number
@najiibjama9906
@najiibjama9906 Ай бұрын
@@danieldaniekl6222 Have you understood the question? The guy followed the instructions of the question but you ...
@srpcdgaming
@srpcdgaming Жыл бұрын
The answer is A: inside if Also love your tutorials they're amazing. Keep it up👍
@purpleocean5670
@purpleocean5670 11 ай бұрын
no the answer will be inside else because a%2=1
@MeowwJane
@MeowwJane 6 ай бұрын
@@purpleocean5670but it has the not symbol (!) so it's reversed
@erl2nd
@erl2nd 2 жыл бұрын
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 Жыл бұрын
@@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.
@julia512
@julia512 18 күн бұрын
I'm a 1st year college student in computer science engineering, I'm leaving this commrnt to keep track of my developpement and to stay motivated. 8/11, I'm able to make a c language program with if statement
@Darkness-898
@Darkness-898 6 ай бұрын
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; }
@bilolnorqobilov5396
@bilolnorqobilov5396 2 жыл бұрын
int main() { double number; printf("Enter the number: ", number); scanf("%lf", &number); if(number>0){ printf("positive number"); } else if(number
@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; }
@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
@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
@krishsharma162
@krishsharma162 3 жыл бұрын
Ma'am, these lectures are very helpful.
@nickjonaz3710
@nickjonaz3710 Жыл бұрын
God bless u ma’am. I love how she explains things very fluently ✍🏾
@MarkjonelDumlao
@MarkjonelDumlao Ай бұрын
Better explanation than my professor teacher😊
@neetdiagramacticlearning4173
@neetdiagramacticlearning4173 2 жыл бұрын
my life saviour...u made me develop interest in c by taking away my aversion..thanks mam
@TewodrosBaye1
@TewodrosBaye1 Жыл бұрын
The cutest programming teacher ever. Thanks for making it easier to understand.
@emmydee408
@emmydee408 Жыл бұрын
Thank you so much for this video ma.... The answer is A (inside if)
@uppilipavitra9634
@uppilipavitra9634 6 ай бұрын
#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
@UddhavBanik
@UddhavBanik 4 ай бұрын
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; }
@henryalbrightekenimdeokpos905
@henryalbrightekenimdeokpos905 6 ай бұрын
Wow, This video Really Helped me in understanding the if/else statements in C. Thank You @programiz for these lessons, God Bless You
@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
@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
@aysham.8398
@aysham.8398 Жыл бұрын
I tried to watch different video on the topic but this one is different and concise. Thank you ms!
@kidsstorytime1573
@kidsstorytime1573 2 жыл бұрын
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; }
@Bahaa.shaalan
@Bahaa.shaalan Жыл бұрын
#include int main(void) { double tempareture=-12; if(tempareture>=1){ printf("tempareture pasitive"); } else if(tempareture
@alirezaz9896
@alirezaz9896 2 жыл бұрын
one of the best c tutorials i have ever seen!!😊😊
@gogulram2551
@gogulram2551 2 жыл бұрын
#include int main() { double number; printf("enter the 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; } the program u asked to do by us
@h.d4632
@h.d4632 4 ай бұрын
#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
@cloudproblemssolved
@cloudproblemssolved 7 ай бұрын
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; }
@shivamchauhan6404
@shivamchauhan6404 2 жыл бұрын
// Online C compiler to run C program online #include int main() { // Write C code here double number; printf("Enter the number here:"); scanf("%lf", &number); if(number>0){ printf("The number is positive"); } else if(number == 0){ printf("The number is 0"); } else{ printf("The number is negative"); } return 0; } OUTPUT: Enter the number here: -18 The number is negative
@MadCrusherYT_006
@MadCrusherYT_006 Ай бұрын
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
@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"); } }
@barkmiya2355
@barkmiya2355 2 жыл бұрын
int num; printf("enter a number: "); scanf("%d",&num); if (num < 0 ) { printf("the number i s nagative "); } else if ( num >0 ) { printf("the number is possitive "); } else if (num = 0) { printf("the number is zero"); } else { printf("you not entered a number plz inte a number "); }
@like_a_boss881
@like_a_boss881 Жыл бұрын
answer is A (inside if).....I love your channel by the way....keep it up.!
@vincemichaelgudito8734
@vincemichaelgudito8734 2 жыл бұрын
// Online C compiler to run C program online #include int main() { double number; printf("Enter a number:\t"); scanf("%lf", &number); if(number > 0){ printf("the number is positive"); } else if (number == 0){ printf("the number is zero"); } else if (number < 0){ printf("the number is negative"); } return 0; }
@boramawi
@boramawi 2 жыл бұрын
Wonderful Explanation with very short examples which are easy to follow.
@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 🙂🙂🙂🙂🙂🙂🙂🙂🙂
@manindrapraharaj873
@manindrapraharaj873 2 жыл бұрын
// Online C compiler to run C program online #include int main() { double age ; printf("pls enter the age "); scanf("%lf",&age); printf("the value of age is %lf",age); if (age>0) { printf(" the number is positive"); } else if (age
@raghumanda2tanush496
@raghumanda2tanush496 2 жыл бұрын
really helpful course , simple and effective explanation
@siddharth840
@siddharth840 Жыл бұрын
#include int main(){ int num; printf("Enter the any number: "); scanf("%d", &num); if (num>0){ printf("THE NUMBER IS POSITIVE"); } else if (num==0){ printf("THE NUMBER IS ZERO"); } else{ printf("THE NUMBER IS NEGATIVE"); } return 0; } answer 11:37
@pratibhasrivastav2698
@pratibhasrivastav2698 Жыл бұрын
My solution- #include int main() { double input; printf(Enter decimal: ); scanf("%lf",&input); if (input == 0){ printf("The number is 0."); } else if(input>0){ printf("The number is positive."); } else{ printf("The number is negetive."); } return 0; }
@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); } }
@pristinewalek4578
@pristinewalek4578 3 жыл бұрын
Answer is Inside if
@fountain9886
@fountain9886 Жыл бұрын
#include int main() { double number; printf("Enter Your Number :"); scanf("%lf",number); if (number>=0){ printf("Number is Positive"); } else if (number
@toykeem
@toykeem Жыл бұрын
thank you programiz. the answer to the quiz question is option A
@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
@islemkhelifa-ve7ip
@islemkhelifa-ve7ip Жыл бұрын
inside if , thank you teacher, you are the best
@AmanGupta-zp5xi
@AmanGupta-zp5xi Жыл бұрын
Thank you mam, you have explained wonderfully 😊
@flick-ict2276
@flick-ict2276 2 жыл бұрын
I love this video ❤️, I understood it perfectly well
@hyuga290__
@hyuga290__ 9 ай бұрын
#include int main() { double number; printf("Enter a number: "); scanf("%lf", &number); if (number > 0) { printf("The number is positive"); } else if (number < 0) { printf("The number is negative"); } else { printf("The number is 0"); } return 0; } 12:05
@mondmare9712
@mondmare9712 8 ай бұрын
Maam you are very resourceful and helpful. Im following in Papua New Guinea
@pawans.3766
@pawans.3766 2 жыл бұрын
#include int main(){ float number; printf("enter a number"); scanf("%f",&number); if(number>0){ printf("the number id +ve"); } else if(number
@devarapallivamsi2981
@devarapallivamsi2981 2 жыл бұрын
#include int main() { printf("Thank you programiz team"); return 0; }
@shs119
@shs119 6 ай бұрын
#include int main() { double number; printf("Enter a number: "); scanf("%lf",&number); if(number>0) printf("The number is positive"); else if(number
@Project.i
@Project.i 8 ай бұрын
//to display whether the entered number is positive or negative #include int main() { double number; printf("enter the number: "); scanf("%lf", &number); if (number > 0){ printf("The entered number is positive"); } else if (number < 0){ printf("The entered number is negative"); } else { printf("The entered number is zero"); } return 0; }
@abhilashreddymalikireddy
@abhilashreddymalikireddy Жыл бұрын
#include #include int main(){ int num= -2; if(num >=1){ printf("positive"); } else if(num
@ritiksingh1484
@ritiksingh1484 2 жыл бұрын
Love Your Voice ☺
@tanmaykumartewary2166
@tanmaykumartewary2166 3 жыл бұрын
This course is really very helpful...plz increase the video frequency.
@programizstudios
@programizstudios 3 жыл бұрын
Thank you! We appreciate your thoughts.
@ALShareem
@ALShareem 3 ай бұрын
her smile in start of video and at last oh my god just beautiful
@AkunemeMighty
@AkunemeMighty Жыл бұрын
int main() { double num; printf("Enter a number: "); scanf("%lf", &num); if (num >= 1) { printf("The number is positive"); } else if (num < 0) { printf("The number is negative"); } else { printf("Number is 0"); } return 0; }
@sriram-qz3bc
@sriram-qz3bc 2 жыл бұрын
The answer is option A
@Manoj-1845
@Manoj-1845 6 ай бұрын
#include int main() { int number; printf("enter your number"); scanf("%d",&number); if (number>0){ printf("its a positive number"); } if (number
@paulmuchemwa7950
@paulmuchemwa7950 2 жыл бұрын
been learning a lot. also the phone application has good notes to refer to
@tambirogerenow5863
@tambirogerenow5863 8 ай бұрын
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
@LearnEnglishThrough_Podcast
@LearnEnglishThrough_Podcast 2 жыл бұрын
Amazing explanation
@YasiruNadeesha
@YasiruNadeesha 9 ай бұрын
// Online C compiler to run C program online #include int main() { double number; printf("enter your 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; }
@JoshuaOgugua
@JoshuaOgugua Жыл бұрын
I love the simplicity
@ganeshbabubandi8886
@ganeshbabubandi8886 2 жыл бұрын
b) inside else
@khokonislam9939
@khokonislam9939 2 жыл бұрын
//*To solve the given problem this code will be work*// #include int main() { int number; printf("Input the number: "); scanf("%d",&number); if(number>0){ printf("The number is positive"); } else if(number
@ehathesham_003
@ehathesham_003 2 жыл бұрын
answer is "Inside if" option:A
@ranjithn7191
@ranjithn7191 2 жыл бұрын
double number=20.8; if(number>0){ printf("The number is positive"); } else if(number
@Kevin-w9w
@Kevin-w9w 3 ай бұрын
So easy to understand thanks
@Respect33217
@Respect33217 9 ай бұрын
//if else statement #include int main() { int number; printf("Enter the number: "); scanf("%d",&number); if (number>0){ printf("positive"); } if(number
@onic9623
@onic9623 Жыл бұрын
Option A : Inside if -------------------------------------------------------------- #include int main() { int num; printf("Enter A Number: "); scanf("%d", &num); if (num == 0) { printf("The Number Is Zero"); } else if (num > 0) { printf("The Number Is Positive"); } else { printf("The Number Is Negative"); } return 0; }
@simautomation
@simautomation 2 жыл бұрын
#include int main() { int num; printf ("enter the number: "); scanf ("%d", &num); if (num >0) printf ("The number is Positive"); else if (num
@okolieolisafrancis3292
@okolieolisafrancis3292 Ай бұрын
Am inspired and it is wonderful
@Data2watch
@Data2watch Жыл бұрын
// program to check the number is +ve , -ve or 0 #include int main() { float num; printf("Enter the number "); scanf("%f",&num); if(num>0) { printf("It is positive number "); } else if(num
@amphorashaven7258
@amphorashaven7258 2 жыл бұрын
#include int main() { // This code checks if a number is positive or negative or zero double number; printf("Enter a 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; }
@erl2nd
@erl2nd 2 жыл бұрын
Well Done Thanks 😊
@nihatdonmzov4166
@nihatdonmzov4166 2 жыл бұрын
Great video
@programizstudios
@programizstudios 3 жыл бұрын
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 .
@3v1lm4nipul4t0r
@3v1lm4nipul4t0r Жыл бұрын
You are the best. You made fall inlove with proogramming
@sychok958
@sychok958 2 жыл бұрын
Video is helpful and understadable~~thanksss a lot
@plasmageorge4944
@plasmageorge4944 Жыл бұрын
Thank you
@doctor2345
@doctor2345 Жыл бұрын
extremely helpful. keep it up!
@nihatdonmzov4166
@nihatdonmzov4166 2 жыл бұрын
Thank you so much🙂
@olisaemekaaghabuilo8688
@olisaemekaaghabuilo8688 Жыл бұрын
A. because the ! will evaluate the if condition to true thereby making the program print "inside if"
@yadlaaravind811
@yadlaaravind811 Жыл бұрын
Answer:a=inside if
@TinovimbanasheKasiyamhuru
@TinovimbanasheKasiyamhuru 9 ай бұрын
#include int main() { double number; printf("enter value of number:"); scanf("%lf", &number); if(number>0) printf("number is positive"); else if(number
@KarthikkumarMayandi
@KarthikkumarMayandi 8 ай бұрын
Why u usning Double? And what's the purpose?
@Something-x2w
@Something-x2w 8 ай бұрын
The answer is A
@tambirogerenow5863
@tambirogerenow5863 8 ай бұрын
Please can you make videos too on C++,java and python?
@jp23x
@jp23x 4 ай бұрын
double number; printf("choose a number: "); scanf("%lf", &number); if(number > 0){ printf("the number is positive "); } else if(number < 0){ printf("the number is negative "); } else { printf("the number is 0 "); }
@aminualiyu-tg4sy
@aminualiyu-tg4sy 6 күн бұрын
The answer is A, inside if
@anasasif8714
@anasasif8714 Жыл бұрын
option A
@Ech-chatouiMohammed
@Ech-chatouiMohammed 2 ай бұрын
thank you for the explanation
@d3vyn22
@d3vyn22 Жыл бұрын
u make c easy
@ankyhiggs1617
@ankyhiggs1617 3 жыл бұрын
Mam plz upload videos daily
@sulthan_06
@sulthan_06 2 жыл бұрын
#include int main() { double temperature=98.8; printf("Enter temperature: "); if(temperature>=1) { printf("positive"); } else if(temperature
#10: Ternary Operator in C | C Programming for Beginners
6:38
Programiz
Рет қаралды 108 М.
#15  C Functions | C Programming for Beginners
16:57
Programiz
Рет қаралды 230 М.
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 115 МЛН
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
БУ, ИСПУГАЛСЯ?? #shorts
00:22
Паша Осадчий
Рет қаралды 3 МЛН
#19 C Arrays | C Programming For Beginners
13:04
Programiz
Рет қаралды 278 М.
C_29 Nested If in C | C Programming Tutorials
15:07
Jenny's Lectures CS IT
Рет қаралды 228 М.
The if-else Statement in Python
9:41
Neso Academy
Рет қаралды 32 М.
#8: Boolean and Comparison Operators in C Programming
14:41
Programiz
Рет қаралды 134 М.
Conditionals (if-else, Nested if and else if)
8:10
Neso Academy
Рет қаралды 375 М.
#12: while Loop in C Programming |  C Programming for Beginners
12:23
C Programming Full Course for Beginners - Learn C in 2022
4:45:36
Programiz
Рет қаралды 251 М.
#11: Switch Statement in C | C Programming for Beginners
11:10
Programiz
Рет қаралды 166 М.
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 115 МЛН