#include int main() { float a, b, c; printf("\nPlease enter 3 numbers: "); scanf("%f %f %f", &a, &b, &c); if(a<=b && a<=c) printf("The smallest number is %.3f", a); if(b<=a && b<=c) printf("The smallest number is %.3f", b); if(c<=a && c<=b) printf("The smallest number is %.3f", c); return 0; }
output:
Please enter 3 numbers: 3 4 5
The smallest number is 3.000
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
output:
Please enter 3 numbers: 3 4 5
The smallest number is 3.000