C Programming Tutorial (TAGALOG VERSION) - #10 Applying AND, OR Logical Operators in C

preview_player
Показать описание
In this lesson we will learn to Apply Logical Operators in C and how they work :)

Practice makes Perfect guys :)

Don't forget to SUBSCRIBE po :)

Pag may tanong po just comment down below. Thank you :)

Don't forget yung challenge guys :)

You can visit this site for more information about the ASCII Code:

#Cprogrammingtutorial #Ctutorialforbeginners #CProgramming #LogicalOperatorsinC
#CtutorialLogicalOperators
Рекомендации по теме
Комментарии
Автор

#include<stdio.h>

int main ()
{
int number;

printf("Please indicate your desire number:\n");
scanf("%d", &number);

if(number < 0)
{
printf("negative\n");
}else
{
printf("positive\n");
}

return 0;

}
ayan po simple lang haha

karlosmiguelserrano
Автор

#include <stdio.h>

int main()
{
int num;
printf("Enter your number\n");
scanf("%i", &num);

if (num>0)
{
printf("your number is positve.\n");
}else
{
printf("your number is negative.\n");
}
return 0;
}

goldababes
Автор

#include <stdio.h>

int main()
{
int num;

printf("Enter a number:\n");
scanf("%i", &num); //almost forgot the & po, hahhahaha, no wonder ayaw gumana nung una

if (num > 0)
{
printf("%i is a POSITIVE number.", num);
}
else
{
printf("%i is a NEGATIVE number.", num);
}
}

Hello sir, thank you po sa tutorials nyo po. Super helpful po. God bless.

elixahernandez
Автор

#include <stdio.h>
#include <stdlib.h>
int main()
{
int num;
printf("Enter a number\n");
scanf("%d", &num);
if (num<0)
printf(" number %d is negative!!", num);
else
printf(" number %d is positive!!", num);

return 0;



}

jaysonDfernandez
Автор

#include<stdio.h>

int main()
{
int num;

printf("Please enter a number>");
//ito ang ipapakita sa screen na magutos mag lagay ng number
scanf("%i", &num);

if(num > 0)
//conditions
{
printf("The number you've entered is a positive number.");
//eto magiging result if na meet ung condition
}
if(num < 0)

printf("The number you've entered is a negative number.");
{
if(num == 0)

printf("The number you've entered is 0.");
}
}

hehe bossing pano ba tamang paggamit ng else if? salamat eto na un assignment xd

hansamdaks
Автор

#include<stdio.h>

int main()
{

int num;
printf("enter a number : ");
scanf("%i", &num);

if (num > 0)
{
printf("POSITIVE NUMBER : %i", num);
}
else
{
printf("NEGATIVE NUMBER : %i", num);
}

return 0;
}

kulugo_