Find Maximum and Minimum Number in C Language with conditional logic.
Maximum Number find:
Maximum number is the number which is greater then all of
given number. Find a maximum number from given number is a easy process.We can find maximum number by using (if/else) conditional logic.
Firstly we have to take some integer numbers.Then check
these number whether such a number is greater then each number.In c Programming
, we check a number with each of these others number. If found a number which
is greater then selected number, then we select this number as a maximum
number.
We find this maximum number in c coding,
From this code, input several 3 numbers.If a=10,b=25,c=20.Then output is Maximum number is : 25.
Minimum Number find:
In other side, Minimum number is the number which is smaller
then all of given number. It is also a
easy process.We can find minimum number by using (if/else) conditional logic.
In this process, we firstly
take some integer numbers. Then check these number whether such a number
is smaller then each number.In c
Programming , we check a number with each of these others number. If found a number which is smaller than
selected number, then we select this number as a minimum number.
We find this minimum number in c coding,
From this code, input several 3 numbers.If a=10,b=25,c=20.Then output is Minimum number is : 10.
We can find Maximum and Minimum Number with above processes.
0 comments:
Post a Comment