Tuesday, 29 September 2015

Write a CPP Program To Find Greater Number From Inputed Two Numbers

1:  #include<iostream.h>  
2:  #include<conio.h>  
3:  #include<stdio.h>  
4:  void main()  
5:  {  
6:    int a,b;  
7:    cout << "Enter 2 numbers" << endl;  
8:    cin>>a>>b;  
9:    if (a>b)  
10:      cout << "Greater is : " << a<<endl;  
11:    else  
12:      cout << "Greater is : " << b<<endl;  
13:       getch();  
14:  }  

No comments:

Post a Comment