C Program to display smallest among three numbers
- Home
- Find elements
- C Program to display smallest among three numbers
- On
- By
- 0 Comment
- Categories: Find elements
C Program to display smallest among three numbers
C Program to display smallest among three numbers
In this tutorial, we discuss C Program to display smallest among three numbers
In this program, we will discuss a simple concept of the program to find the smallest number among three numbers in the C programming language.
In this topic, we learn how to find the smallest number from given three numbers using if statements.

Find smallest among integer numbers
Program 1
#include#include int main() { int num1,num2,num3;//variable declaration printf("Enter tree numbers\n"); scanf("%d %d %d",&num1,&num2,&num3); //Takse three input num1,num2,num3 from user if(num1 When the above code is compiled and executed, it produces the following results
Enter three numbers 76 54 32 32 is smallestFind smallest among float numbers
#include#include int main() { float num1,num2,num3;//variable declaration printf("Enter three numbers\n"); scanf("%f %f %f",&num1,&num2,&num3); //Takse three input num1,num2,num3 from user if(num1 When the above code is compiled and executed, it produces the following results
Enter three numbers 34.56 23.43 67.54 23.43 is smallestSuggested for you
Operator in C language