Our Recommendation for You Search your Query, You can find easily. for example search by book name or course name or any other which is related to your education

Followers

how to find larger number using c++

how to find larger number using c++

This is source code to find the larger number of given numbers

#include<iostream.h>
#include<conio.h>
main()
{
      int num;
      int larger=0;
      for(int i=1;i<=10;i++){
            cout<<"Enter number"<<i<<":"<<endl;
            cin>>num;
               if(num>larger){
                             larger=num;
                              }
                              }
                              cout<<"larger num is="<<larger<<endl;
                              getch();
}                            




we recommend to visit