Facebook
From Thiwanga Sandaruwan, 4 Months ago, written in C++.
Embed
Download Paste or View Raw
Hits: 31
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int number1,number2;
  7.     cout<<"Enter number1 :"<<endl;
  8.     cin>>number1;
  9.     cout<<"Enter number2 :"<<endl;
  10.     cin>>number2;
  11.  
  12.     if(number1>number2)
  13.     {
  14.         cout<<number1<<" is greater than "<<number2<<endl;
  15.     }
  16.     else
  17.     {
  18.         cout<<number1<<" is less than "<<number2<<endl;
  19.     }
  20.     cout<<"Value of number1: "<<number1<<endl;
  21.     cout<<"Value of number2: "<<number2<<endl;
  22.  
  23.     return 0;
  24. }
  25.