Skip to content

Commit f6f0783

Browse files
committed
my last commit, finally
1 parent c397204 commit f6f0783

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#include <stdio.h>
2+
/**
3+
* main - main function
4+
* Return: always return 0
5+
*/
6+
int main(void)
7+
{
8+
int counter = 2;
9+
float a = 1;
10+
float b = a + 1;
11+
float c = a + b;
12+
printf("%.0f, ", a);
13+
printf("%.0f, ", b);
14+
while (counter < 98)
15+
{
16+
counter++;
17+
printf("%.0f", c);
18+
a = b;
19+
b = c;
20+
c = a + b;
21+
if (counter < 98)
22+
{
23+
printf(", ");
24+
}
25+
}
26+
printf("\n");
27+
return (0);
28+
}

0 commit comments

Comments
 (0)