How to Read Three Numbers & Print The Biggest Of Given Three Numbers in C++ Program

CWC
0 Min Read

Here is sample C++ Program to Read Three Numbers & Print The Biggest Of Given Three Numbers

# include 
#include 
# include 
using namespace std;
int main( ) 
{
int a,b,c,big=0; 
cout<<"ENTER VALUE FOR A:"; cin>>a; 
cout<<"ENTER VALUE FOR B:"; cin>>b; 
cout<<"ENTER VALUE FOR C:"; cin>>c; 
if (a>big) big=a ; if(b>big) big=b; 
if (c>big) big=c; 
cout<<"BIGGEST OF ABOVE GIVEN THREE NUMBER IS "<<big; return 0;
}
Share This Article
Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

English
Exit mobile version