עבור לתוכן
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

פורסם

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Please enter a sentence and press ENTER");
string input = Console.ReadLine();
int i = 0;
Console.WriteLine("please enter your name");
string g = Console.ReadLine();
while (i < 10 )
{
Console.WriteLine(input+g);
i = i + 1;
}
}
}
}

הקוד הזה קולט את מה שאתה רושם פעמיים ומדפיס .

אבל הוא לא שם רווחים בין המילים .כאשר הוא מדפיס אותם . איך אני יכול לשים רווחים ?

ב I למה שמנו אפס ולמה לא שמנו 5 או 9 או כל מספר .וב לולאת ה WHILE למה שמנו 10 > ן ולא שמנו את 0 < ן .

ומה הוא אופראטור ההשמה ?

פורסם

ערוך בבקשה את הכותרת כך שתהיה יותר ברורה, ותוסיף לה את השפה שבה אתה כותב.

הפעולה + על שתי מחרוזות משרשרת אותן זו לזו. כלומר, פעולה כזה:

"abc" + "def"

תחזיר את המחרוזת "abcdef".

לכן, הפעולה input+g משרשרת את שתי המחרוזות input ו-g בלי שום תוספות. על מנת להוסיף רווח, אתה צריך לדאוג לשרשר אותו בין שתי המחרוזות:

input + " " + g

לגבי שאר השאלות - בשביל זה תלמד מה זה while, איך משתמשים בו ומה המשמעות של מה שבתוך הסוגריים.

אופרטור ההשמה זה הפעולה של הסימן = .

ארכיון

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

דיונים חדשים

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.