Basic Pascal Tutorial/Hello, World/ar

From Lazarus wiki
Revision as of 22:41, 25 January 2024 by Faissal (talk | contribs) (Created page with "{{Basic Pascal Tutorial/مرحبا بالعالم}} {{TYNavigator|Compilers|Chapter 1/Program Structure}} مرحبا بالعالم (المؤلف: Tao Yue, الحالة: دو...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Template:Basic Pascal Tutorial/مرحبا بالعالم

 ◄   ▲   ► 

مرحبا بالعالم (المؤلف: Tao Yue, الحالة: دون تغيير)

أحد التقاليد المعتادة في تاريخ برمجة الكمبيوتر أن أول برنامج بلغة جديدة هو طباعة "مرحبًا بالعالم" على الشاشة. لذلك دعونا نفعل ذلك. انسخ البرنامج أدناه والصقه في IDE أو محرر النصوص، ثم قم بتجميعه وتشغيله.

إذا لم تكن لديك أي فكرة عن كيفية القيام بذلك، فارجع إلى جدول المحتويات. تشرح الدروس السابقة ما هو المترجم، وتعطي روابط للمترجمات القابلة للتنزيل، وترشدك خلال عملية تثبيت مترجم Pascal مفتوح المصدر على Windows.

program Hello;
begin
  writeln ('Hello, world.');
end.

The output on your screen should look like:

Hello, world.

If you're running the program in an IDE, you may see the program run in a flash, then return to the IDE before you can see what happened. See the bottom of the previous lesson for the reason why. One suggested solution, adding a readln to wait for you to press Enter before ending the program, would alter the "Hello, world" program to become:

program Hello;
begin
  writeln ('Hello, world.');
  readln;
end.
 ◄   ▲   ►