Write a program in 'C' to enter any two numbers and find and print their minimum.(Using if.....else statement)
#include< #include< #include< main() { float a, b, min; printf("Enter any two numbers\n"); scanf("%f %f", &a, &b); if(a < min =" a;" min =" b;"> |
---|
For eg :-
Output :-
Enter any two numbers
20.5 32.3
The minimum number is 20.500000
0 comments:
Post a Comment