C++ Programming Blog

 
 
 

Image

 #include<iostream.h>
 #include<conio.h>

 void largest(int,int,int);

 main()
    {
       clrscr();


       int value_1;
       int value_2;
       int value_3;

       cout<<\"\\n Enter the value_1 =  \";
       cin>>value_1;

       cout<<\"\\n Enter the value_2 =  \";
       cin>>value_2;

       cout<<\"\\n Enter the value_3 =  \";
       cin>>value_3;

       largest(value_1,value_2,value_3);

       getch();
       return 0;
    }



 //-------------------------  largest(int,int,int)  ----------------------//


 void largest(int x,int y,int z)
    {
       int largest=x;

       if(y>largest)
      largest=y;

       if(z>largest)
      largest=z;

       cout<<\"\\n Largest integer is = \"<<largest<<endl;
    }

    Related Post:
  1. Program to show the implementation of Cohen-Sutherland MidPoint Subdivision Line Clipping Algorithm

  2. Program to illustrate the implementation of arrays as a Stack in graphics

  3. Program to perform merge sort

  4. Program to illusrate data conversion b/w built-in data types and user defined data types(in char)

  5. Program that are completely portable across different operating systems

  6. Program to construct Newtons Backward Difference Interpolation Formula from the given distinct equally spaced data points

  7. Program to fill different types of geometric shapes using Flood Fill Algorithm

  8. Program to implement the Prims Algorithm to solve Minimum Spanning Tree Problem (MST) using Graphics and with Mouse support

  9. Program that prints first 20 integers in reverse order (using while loop )

  10. Program of parser 2

  11. Program to illustrate the use of inline functions

  12. Program of that provides an example of function overloading

  13. Program to check whether a word is palindrome or not (using classes & pointers )

  14. Program to illustrate the use of nested structures

  15. Program of DDA line drawing algorithm

  16. Implement a Matrix class representing 2-dimensional matrix with the following functionalities i.e. operators + , - , * , == , += &lt;&lt; , &gt;&gt; etc

  17. Program to estimate the value of First Derivative of the function at the given points from the given data using Central Difference Formula of order 4

  18. Write a Program to create Numeric Triangle

  19. Program to convert an Infix Expression into a Postfix Expression using Linked List as a Stack

  20. Program of rotate about reference point