#include "stdio.h"
int kuasaDua (float,float);
int main ()
{
float a,b,j;
printf("masukkan nombor\n");
scanf("%f",&a );
kuasaDua (a,b);
printf("%1.1f kuasa dua ialah %2.1f\n",a,b);
}
int kuasaDua(float a,float b)
{
kuasaDua=a*a;
kuasaDua=b;
return kuasaDua;
}
You don't get as far as linking; your code does not even compile to object code.
'b' is used without initialization.
Return value of function 'kuasaDua' is not stored in a variable.
There is no variable named 'kuasaDua' declared within the scope of function 'kuasaDua'.
This site has a Tutorial. It does show the basic usage of functions. Please read.