Posts

Showing posts with the label Minimum Maximum Average

How to write C++ program to Find Min, Max and Average

Image
Write C++ program to Find Min, Max and Average Dear Students, Today in C++ Programming Tutorial we will learn How to write C++ program to Find Minimum , Maximum and Average.  It is a Simple c++ program which takes input numbers from user and will  find minimum, maximum and average of numbers . How to write C++ program to Find Min, Max and Average Recommended : DevC++ Installation and Usage Complete Guidelines In this Program we will uses do while loop to find min, max and avg . User can input many numbers. To calculate user has to break do while loop condition which breaks when user inputs -1 C++ Program Code: #include<iostream> #include<conio.h> using namespace std; int main() {     float max=0.0,min=0.0,sum=0.0;     float num=0.0;     float avg=0.0;     cout<<"enter a whole number or -1 to get result:";             //program working through example     cin>>num;...