#include<iostream.h>
double hasil(int A, int B);
void main ()
{
int x, y;
double z;
cout<<" Masukan Nilai x : ";cin>>x;
cout<<" Masukan Nilai y : ";cin>>y;
z = hasil(x,y);
cout<<" Hasil Perkaliannya = ";
cout<<x<<" x
"<<y<<" = "<<z;
}
double hasil (int A, int B)
{
return (A*B);
} // Statement Mengambil Nilai
0 komentar:
Posting Komentar