IJUL'S BLOG

Contoh program kuadrat

catatan kuliahq:
ni langsung aja source code nya :


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

long kuadrat(long l);

void main()
{
 long bilangan;
 cout<<"PROGRAM KUADRAT BILANGAN"<<endl<<endl;
 cout<<"Masukkan Bilangan : "; cin>>bilangan;

 cout<<endl<<endl;
 cout<<bilangan<<" kuadrat = ";
 cout<<kuadrat(bilangan);
 getch();
}

long kuadrat(long l)
{
 return(l * l);
}




 

0 komentar:

Posting Komentar

Powered By Blogger
Diberdayakan oleh Blogger.

Entri Populer

PENGUNJUNG

Buku Tamu

About Me

Foto Saya
Ijal Ferdi
there is no something special about me,,, but this blog is so special for me......
View my complete profile

Total Tayangan Halaman

Followers