by Dinesh Thakur Category: Object-oriented programming (OOP)

 

#include <iostream.h>

#include<conio.h>
void main()
{
          clrscr();
          double x, y;
          cout << "Enter two Floating Values: ";
          cin >> x ;
          cin >> y;
          cout << "The Average of the two Numbers is : " << (x +y)/2.0 << endl;
          cout<< ends;    // Null Terminate
          getch();
}

Ends Manipulator

Popular Article