unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
var
Total:integer;
J,L:integer;
begin
J:=StrToInt(InputBox('Valor','Digite o valor do produto!',''));
L:=StrToInt(InputBox('Valor','Digite o numero de parcelas do produto!',''));
Total:=J/L;
ShowMessage('O Valor a ser pago em cada parcela é:'+IntToStr(Total));
end;
end
NÃO SEI COMO RESOLVER ISSO
dcc command line for "Project1.dpr"
[dcc32 Error] Unit1.pas(33): E2010 Incompatible types: 'Integer' and 'Extended'
[dcc32 Fatal Error] Project1.dpr(5): F2063 Could not compile used unit 'Unit1.pas'













