Sabtu, 17 April 2010

Cpp fungsi

#include

int hasilKali(int a, int b, int c){


int hasil;
hasil = a * b * c;
return hasil;
}

int main(){

int a = 1;
int b = 2;
int c = 3;
int hasil;

hasil = hasilKali(a, b, c);
printf("hasil perkalian : %d\n", hasil);
return 0;

}