This blog is very helpful for anyone . if u have new program then send me i will post its solution . rzainulabideen@gmail.com
Tuesday, 2 September 2014
Program to check which number is greater
// Code is given below
#include<iostream>
using namespace std;
int main()
{
int a , b;
cout<<" enter the 1st number = ";
cin>> a;
cout<<"enter the 2nd number = ";
cin>> b;
if ( a > b )
{
cout<<" greater number is "<< a<<"\n\n\n";
}
else if ( a < b )
{
cout<<" greater number is "<< b<<"\n\n\n";
}
else
cout<<" numbers are same \n\n\n ";
return 0;
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
thnx for visiting my blog