Nilai Balik Dalam Bentuk Angka

Posted by Budi Arieyanto | Posted in | Posted on 04.29

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

double maks(double x, double y);

void main()
{
 clrscr();

 cout<<maks(65789,123)<<endl;
 cout<<maks(123,65789)<<endl;

 getch();
}
 double maks(double x, double y)
 {
  if(x>y)
   return(x);
  else
   return(y);
  }

Comments (0)

Posting Komentar