Note: We need an author for this blog. Willing people contact Us......

Thursday, 17 November 2016

Dev C++, maximum and minimum example 5

#include <iostream>
#include <conio.h>
using namespace std;

int maximum(int,int,int);
int minimum(int,int,int);


/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main( )
{
int a,b,c;
cout<<"Enter your number"<<endl;
cin>> a>> b>> c;
cout<<"your provided maximum number is = "<< maximum(a,b,c) <<endl;
cout<<"your provided minimum number is = "<<minimum(a,b,c)<<endl;

return 0;
}

No comments:

Post a Comment

Contact us

Name

Email *

Message *