אני עשיתי קוד כזה:
#include <stdio.h>
int main()
{
int numbers [20];
int x;
for (x = 1; x <= 20; x++) {
numbers[x-1] = x*8;
}
printf ("please enter your number\n");
scanf ("%d" ,numbers);
printf ("the result is %d\n", numbers);
}
וכשאני מפעיל את התוכנה זה מגיע לי לתוצאות ענקיות. וכן, אני יודע שיש דרך הרבה יותר קלה, אבל אני צריך בדרך הזאת.
תודה לעוזרים



ציטוט ההודעה

