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

שפת c - תרגיל למתחילים לא מתקמפל

Featured Replies

פורסם

אני מצרף תמונה של התרגיל ושל הקומפיילר כשהוא מסמן את השורה הבעייתית (כנראה).

הקוד:



int main (void)
{
int num1,num2,num3,sum;
sum = (1+(num1*2)+(num2*3)+(num3*4));

printf("please enter 3 numbers:");
scanf("%d%d%d",&num1,&num2,&num3);
scanf("%d",∑);
printf("| 1| 2| 3| 4|\n");
printf("| %d| %d| %d| %d|\n",(num1*1),(num1*2),(num1*3),(num1*4));
printf("| %d| %d| %d| %d|\n",(num2*1),(num2*2),(num2*3),(num2*4));
printf("| %d| %d| %d| %d|\n",(num3*1),(num3*2),(num3*3),(num3*4));
printf("sum of the diagonal is: %d ",sum);









getch();
return 0;
}
#include <stdio.h>

אני לא לומד את השפה באיזה שהוא בית ספר ככה שאם אני שואל שאלות מפגרות פשוט להבין שאני ממש בהתחלה וחסר לי הרבה דברים שנראים לכם מובנים מאליהם.

תודה מראש

פורסם
  • מחבר

מתקמפל .

תודה רבה :)

ארכיון

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

דיונים חדשים

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.