Wednesday, 24 July 2013

PROGRAM TO FIND GREATER NUMBER AMONG TWO

//PROGRAM TO FIND GREATER NUMBER AMONG TWO
/*MADE BY KRISHNA AGARWAL*/
#include<iostream>
using namespace std;
int main()
{
    int a,b;
    cout<<"enter the value of a\n";
    cin>>a;
    cout<<"enter the value of b\n";
    cin>>b;
    if(a>b)
    cout<<a<<"is greater than"<<b;
    else
    cout<<b<<"is greater than"<<a;
    return 0;
}

No comments:

Post a Comment