47: Write a program to determine the minimum of two numbers
// Write a program to determine the minimum of two numbers
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
float num1, num2, mini;
cout << "Enter first number: ";
cin >> num1;
cout << "Enter second number: ";
cin >> num2;
mini=min(num1, num2);
cout << "The maximum between " << num1 << " and " << num2 << " is " << mini << endl;
return 0;
}
Comments
Post a Comment