עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

בעיה בפסקל

Featured Replies

פורסם

אני רוצה להשוות שני מערכים A וB ולבדוק אם B1 שווה ל A זאת אומר (A1 =B1 או A2 או A3 או A4) ואז ל B2 וכו' לפי גודל המערך.

ואז לבדוק אם A1=B1 ואם A2 =B2 וכו'.

לפי גודל המערך שנקבע על ידי המשתמש אני לא מצליח אם מישהו יודע בקשה להגיב

תודה מראש.

(בפסקל!)

פורסם

for i:=1 to length(B) do

for j:=1 to length(A) do

if a[j]=b then...etc.

???

פורסם
  • מחבר

for i:=1 to length(B) do

for j:=1 to length(A) do

if a[j]=b then...etc.

???

אשמח לקבל הסבר במילים על מה שעשית

נ.ב.

שאני מכניס את זה לתוכנית זה כותב STRING expression EXPECTED

התכנית אמורה ליהיות משחק שבו המחשב יוצר תבנית של מספרים והמשתמש צריך לנחש איזה תבנית כל פעם המשתמש מכניס תבנית משלו והמחשב כותב לו כמה מספרים הןא צדק (מספרים שנמצאים בתבנית של המחשב) וכמה היו במקום הנכון

הוספתי את הקוד שבניתי עד עכשיו אולי מישהו יודע איך לפתור את הבעיה שלי (ההודעה הראשונה)

program atlantic;
uses crt;

var
a:array[1..4] of real;
b:array[1..4] of real;
i,x,j:integer;

begin
clrscr;


randomize;
for i:=1 to 4 do begin
a[i]:=random(10);
write(a[i]);
end;
for i:=1 to 4 do
read(b[i]);

read;
end.

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.