🚀 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
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 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.
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
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
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
/* 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; }
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.]
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; }
#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
#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
@@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 .
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; }
#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
#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
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; }
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
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.
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; }
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
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 "); }
#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"); } }
// 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
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"); }
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; }
🚀 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
Qq
OKAY THANK YOU
You explain a lot better than my professor from college. Thanks for making things easier!
how you did after 11 months?
it's my first year in the uni and I didn't understand from my professor now I'm able to write simple codes easily and I'm still advancing
The answer is A: inside if
Also love your tutorials they're amazing. Keep it up👍
no the answer will be inside else because a%2=1
@@purpleocean5670but it has the not symbol (!) so it's reversed
i do not know why university Professors are making these easy lessons so much difficult and unbearing, Thank you @programiz
Ma'am, these lectures are very helpful.
Answer is A : Inside if
answer is B
God bless u ma’am. I love how she explains things very fluently ✍🏾
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!!!
Mind If I ask how you did ?
@@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.
one of the best c tutorials i have ever seen!!😊😊
#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
Good job
else if(number
@@danieldaniekl6222 Have you understood the question?
The guy followed the instructions of the question but you ...
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
I tried to watch different video on the topic but this one is different and concise.
Thank you ms!
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
Wow, This video Really Helped me in understanding the if/else statements in C. Thank You @programiz for these lessons, God Bless You
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
my life saviour...u made me develop interest in c by taking away my aversion..thanks mam
The cutest programming teacher ever. Thanks for making it easier to understand.
Better explanation than my professor teacher😊
Wonderful Explanation with very short examples which are easy to follow.
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
/*
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;
}
Thank you so much for this video ma.... The answer is A (inside if)
I love this video ❤️, I understood it perfectly well
really helpful course , simple and effective explanation
Thank you mam, you have explained wonderfully 😊
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.]
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
If Else Statements in c simplified thanks for making it easier
🙂🙂🙂🙂🙂🙂🙂🙂🙂
Maam you are very resourceful and helpful. Im following in Papua New Guinea
It,s amazing
thank you for your efforts
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;
}
inside if , thank you teacher, you are the best
Video is helpful and understadable~~thanksss a lot
been learning a lot. also the phone application has good notes to refer to
Love Your Voice ☺
#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
extremely helpful. keep it up!
Amazing explanation
This course is really very helpful...plz increase the video frequency.
Thank you! We appreciate your thoughts.
Am inspired and it is wonderful
So easy to understand thanks
thanks a lot maam , your videos are very helpful
thanks, really nice to hear this
#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
Thank you so much🙂
Thank you
answer is A (inside if).....I love your channel by the way....keep it up.!
I really inspired to your lecture ❤
int main() {
double number;
printf("Enter the number: ", number);
scanf("%lf", &number);
if(number>0){
printf("positive number");
}
else if(number
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;
}
Output:-) inside if
A. Inside if
insideif
@@my_talks01 how bro?
@@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 .
thank you programiz. the answer to the quiz question is option A
You are the best. You made fall inlove with proogramming
thank you for the explanation
Very helpful
Nice 👍
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;
}
#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
You are amazing ❤
Nyce program
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😅
#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
I love the simplicity
inside if
great work
thanks 💥😍
u make c easy
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;
}
thank you for your amazing work
It is helpful,upload more videos mam
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
Thanks a lot
Please can you make videos too on C++,java and python?
great video
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.
Why does my compiler keep warning me that scanf() may be unsafe and forces me to use scanf_s()?
Mine brings back both printf statements unless i remove the other if statement
what if i enter a character why its printing the number is positive?
her smile in start of video and at last oh my god just beautiful
Can we use ( else ) again n again ?
#include
int main(void) {
double tempareture=-12;
if(tempareture>=1){
printf("tempareture pasitive");
}
else if(tempareture
If possible please make similar tutorials for java and kotlin
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;
}
wt is the difference between if and else if
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
@@programizstudios Thank u mam
thank you so much for this‚ it really help :,>
You are awesome
Ma'am plz upload videos fast it will be beneficial
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 ");
}
A. because the ! will evaluate the if condition to true thereby making the program print "inside if"
Thanks
option A
#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");
}
}
Mam plz upload videos daily
Please upload a series tutoring java script
// 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
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
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;
}
nice again yo
Ma'am, it would have been nice to finish the course a little early
Thank you! We appreciate your thoughts. We post video every week on Wednesday. So stay tuned for next video.
U are beautiful and good at ur work❤
Answer is Inside if
Instead of using if for the second time can't we just give a keyword default...? For printing " sorry you can't vote !! "...???
b) inside else