Calculate Maximum Number

Calculate Maximum Number:



#include<iostream>
using namespace std;
void maximum(float x,float y,float z);
void main()
{
float x,y,z;
maximum(x,y,z);

}
void maximum(float x,float y,float z)
{
cout<<"Enter 1st Number"<<endl;
cin>>x;
cout<<"Enter 2nd Number"<< endl;
cin>>y;
cout<<"Enter 3rd Number"<<endl;
cin>>z;
if(x>y & x>z)
cout<<"Maximum Number Is     "<<x<<endl;
else if(y>x & y>z)
cout<<"Maximum Number Is     "<<y<<endl;
else if(z>x & z>y)
cout<<"Maximum Number Is     "<<z<<endl;
}

Download:

To download this code click on the given link below:

Comments

Popular posts from this blog

How to Run Assembly Language Programming Code In Visual Studio 2019

How to Display Table of any Number in Assembly Language

How to Display Character in Assembly language