I have made a function with 2 parameters with the same data type and I have no problem with that.
But I'm having trouble with different data type
Here's my code :
uses crt;
function inputscore(name : string, score:integer) : integer;
begin
writeln('My name is ',name,' and my score is ',score);
inputscore:=0;
end;
begin
clrscr;
inputscore('David',98);
readkey;
end.
But It returned this error message:
multipleparameterfunc.pas(2,34)Fatal syntax error, ")" expected but "," found
a, b: stringversusa: string; b: stringora: string: b: integer.