KUADRAT

36106yqar2xkebp1.jpg36106yqar2xkebp1.jpg36106yqar2xkebp1.jpg

/*——————————————————*/
/* PROGRAM C++ */
/*——————————————————*/
/* Nama: M. Zakqi Hendra A */
/* Kelas:2A */
/* Tanggal: */
#include<iostream.h>
#include<conio.h>

int kuadrat(int i);
long kuadrat(long l);
double kuadrat (double d);

void main()
{
clrscr();
cout << kuadrat (2) << endl;
cout << kuadrat (66666) << endl;
cout << kuadrat (1.2) << endl;
getch();
}

int kuadrat (int i)
{
return (i*i);
}
long kuadrat (long l)
{
return(l*l);
}
double kuadrat (double d)
{
return(d*d);
}

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: