C Programming || Smallest Number Among Three Numbers In C #shorts #basiccode #cprogramming

preview_player
Показать описание
Welcome friends.. In this we are going to watch how to find smallest number in c.I create a simple c program to find the smallest numnber among three numbers.This program uses the same logic as find largest number in c.

Don't forget to like and subscribe the our Youtube Channel.

#shorts
#basiccode
#cprogramming
#cforbeginners
#basiccodeofficial
Рекомендации по теме
Комментарии
Автор

bro why u add extra variable aled smalest, u can add a variable directly ?

peace_
Автор

/*input 3 number and find out
the smallest 1 using conditional
statement and logical operator*/


#include<stdio.h>
int main(){
int a, b, c;

printf("Enter there value");
scanf("%d %d %d", &a, &b, &c);

if(a<b && a<c)
{
printf("smallest number is: %d", a);
}
if(b<a && b<c)
{
printf("smallest number is:%d", b);
}
if(c<a && c<b)
{
printf("smallest number is:%d", c);
}
return 0;
}

bipugamer
join shbcf.ru