I need some help using functions. I wrote this code as if it was a regular program.
Code:#include <iostream> using namespace std; int main() { int num, count = 0, flag = 10, MIN = 0; while( count < flag ) { cout << "Enter a number: " << endl; cin >> num; if( num < MIN ) MIN = num; count++; } cout << "The smallest number is " << MIN << endl; }
Write a program that will ask for the 10 numbers. The program will use a function to find the minimum number.
This is what I am supposed to do. Not sure how to start doing it.



LinkBack URL
About LinkBacks



