Category Archives: C++

c++ function to return mnm of 2 numbers

Condition : numbers should asked when function is executed:   #include <iostream> using namespace std; int minnummber() { // local variable declaration int result, num1, num2; cout << “Enter first number :: “; cin >> num1; cout << “Enter second number :: “; cin >> num2; if (num1 > num2) result = num2; else result… Read More »

Category: C++