Συντονιστής: konnn
var
a,b:string;
c:=strtoint(a)+strtoint(b);
c:=strtofloat(a)+strtofloat(b);
έγραψε:...δίπλα δίπλα χωρίς να κάνει πρόσθεση δλδ αν α=2,β=3 τότε c=23
a:='Ubuntu';
b:='RuleZ!';
c:=a+b; // 'UbuntuRuleZ'
c:=a+' '+b; // 'Ubuntu RuleZ'
procedure CalculateSum();
var
a,b,c:extended;
aStr,bStr: string;
begin
Try
aStr := InputBox('Give a number', 'A:', '1');
aStr := Trim(aStr);
a := StrToFloat(aStr);
bStr := InputBox('Give a number', 'B:', '1');
bStr := Trim(bStr);
b := StrToFloat(bStr);
c := a + b;
ShowMessage('C is '+floattostr(c));
except
on E : Exception do
begin
ShowMessage('Invalid value');
end;
end;
end;