Wednesday, 9 April 2014

write c++ program to input two number and find(print) greater number


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#include<iostream.h>
#include<conio.h>
void main(){
clrscr();
int a,b;
cout<<"enter first number=";
cin>>a;
cout<<"enter second number=";
cin>>b;
if(a>b)
cout<<"first number is greater";
else
cout<<"second number is greater";
getch();
}



OUTPUT

All Rights Reserved c++ programming