netx_iit

p3 - Find big number from two number.

Jun 19th, 2020 (edited)
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include<iostream.h>
  2. #include<stdio.h>
  3. #include<conio.h>
  4. int main()
  5. {
  6.     int no1,no2;
  7.     clrscr();
  8.     cout<<"\nEnter two no";
  9.     cin>>no1>>no2;
  10.     if(no1==no2)
  11.     {
  12.         cout<<"Value is same";
  13.     }
  14.     else
  15.     {
  16.     if(no1 >= no2)
  17.     {
  18.         cout<<"\nNo 1="<<no1<<"is big";
  19.     }
  20.     else
  21.     {
  22.         cout<<"\nNo 2="<<no2<<"is big";
  23.     }
  24.     }
  25.     getch();
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment