.
Home About-us Privacy Policy Contact-us Services

Thursday, October 8, 2015

c++ program to greater number in three number

ad+1


Program -

#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
cout<<"enter the value of a,b,c";
cin>>a>>b>>c;
if(a>b,a>c)
cout<<"a is a greater="<<a;
else
if(b>c)
cout<<"b is greater="<<b;
else
cout<<"c is greater="<<c;
getch();
}


Output :

enter the value of a,b,c
3
5
8
c is greater=8









0 comments:

Post a Comment

Home About-us Privacy Policy Contact-us Services
Copyright © 2014 All Programs Examples | All Rights Reserved. Blogger Templates Download Blogger Templates