שפת C/פעולות חשבוניות: הבדלים בין גרסאות בדף
תוכן שנמחק תוכן שנוסף
שורה 9:
<source lang = "c">
int x =
/* Prints
printf("%d + %d = %d\n" % x, y, x + y);
/* Prints
printf("%d - %d = %d\n" % x, y, x - y);
/* Prints
printf("%d * %d = %d\n" % x, y, x * y);
/* Prints
printf("%d
</source>
שורה 29:
int x = 2, y = 3;
/* Prints 16 */
printf("%d\n" % x + y * 3 + 5);
</source>
==סדר פעולות החשבון==
סדר פעולות החשבון בשפת C הוא המקובל
|