Aniket_Goku

BIG NUMBER!

Jun 28th, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3. #include<iostream.h>
  4. class A
  5. {
  6. public:
  7. void dif(int a,int b)
  8. {
  9. if(a==b)
  10. {
  11. cout<<"\nnum1 and num2" <<"both are same";
  12. }
  13. else
  14. {
  15. if(a>b)
  16. {
  17. cout<<endl<<a<<" is biggest";
  18. }
  19. else
  20. {
  21. cout<<endl<<b<<" is biggest";
  22. }
  23. }
  24. }
  25. };
  26. int main()
  27. {
  28.  
  29. A a1;
  30. int a,b;
  31. clrscr();
  32. cout<<"\nEnter the Num1 => ";
  33. cin>>a;
  34. cout<<"\nEnter the Num2 => ";
  35. cin>>b;
  36. a1.dif(a,b);
  37.  
  38. getch();
  39. return 0;
  40. }
Add Comment
Please, Sign In to add comment