C++ program to find greatest number between 2

C++ program to find maximum number between 2

Program:-

Method 1

C++ program to find greatest number between 2 using if - else statement.



Method 2

C++ program to find greatest number between 2 using condition statement.


Output:-

Enter 1st number
5
Enter 2nd number
8
The greatest number is 8

Output:-

Enter 1st number
89
Enter 2nd number
8
The greatest number is 89

One Comment

  1. its very nic tutorial i loved it thanks admin am Dummies for c++ i am studying computer science i like it the page great job.

    ReplyDelete

Add your comments here

Back to Top