مثال برمجي 10 : Write a C Program to print Fibonacci series up to 100
- 2020-10-29
توصيف
السؤال من كورس ال Programming الخاص بي
Write a program that reads a positive integer and computes the factorial
الحل مرفق
لمزيد من التفاصيل يرجى التواصل معي
int main()
{
for (c = 0; c < 12>
{
if (c <= 1)
next = c;
else
{
next = first + second;
first = second;
second = next;
}
if(next != 0)
printf("%d ", next);
}
return 0;
}