For To Do di lazarus

Buat Mas Tommy.. Berikut pencerahan, semoga belum telat..

program Project1;

{$mode objfpc}{$H+}

uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes
{ you can add units after this };
var
nilai :string;
I: Integer;
begin
for I := 1 to 100 do
begin
if i <100  then nilai:=’A’;
if i <85  then nilai:=’B’;
if i <70  then nilai:=’C’;
if i <50  then nilai:=’D’;
if i <30   then nilai:=’E’;

writeln(I,nilai);
readln;
end
;
end.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s