i'm using c++ and i'm practicing this simple program...
making a program with the use of function...
inig compile nako, naay warning nga
unreachable code ug
function should return a value nga mogawas..
here's my program:
#include <stdio.h>
#include <conio.h>
int multiply( int x, int y )
{
int product;
product = x * y;
return product;
}
int main()
{
clrscr();
int ans;
ans = multiply(5, 2);
printf("The product of 5 and 2 is %d", ans);
return 0;
getch();
}
pls debug it for me kay di jud ko ka-identify asa ang problema..
salamat..