cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
comparing three values
comparing three values
Nov 3, 2015 at 1:40pm UTC
asad ur rehman
(1)
To compare the values of a,b and c?
#include<iostream>
#include<conio.h>
using namespace std;
main()
{ int a,b,c,max;
cin>>a>>b>>c;
max=a;
if(max<b)
max=b;
if(max<c)
max=c;
cout<<max;
getch();
}
Nov 3, 2015 at 2:08pm UTC
aquavillan
(39)
What is your problem?
Please give us more details.
Topic archived. No new replies allowed.