#include <stdio.h>
#include <stdlib.h>
#define RED "\x1b[31m"
#define GREEN "\x1b[32m"
#define YELLOW "\x1b[33m"
#define BLUE "\x1b[34m"
#define MAGENTA "\x1b[35m"
#define CYAN "\x1b[36m"
#define RESET "\x1b[0m"
int main () {
int n1 = 1, n2 = 0, i = 0, limit = 0, neg = 0, pos = 0;
printf("Enter first number > ");
scanf("%d",&n1);
printf("Enter the seconed number > ");
scanf("%d",&n2);
printf("Enter the number of terms > ");
scanf("%d",&limit);
for (i; i < limit; i++ ) {
if (n2 >=1) { pos ++; printf( RESET "%i\n" RESET, n2); }
if (n2 <=0) { neg ++; printf( MAGENTA "%i\n" MAGENTA, n2); }
int temp = n2;
n2 += n1;
n1 = temp;
}
printf(RESET"\n***************************************************"RESET);
printf("\nPositive numbers in range %i : %i\n",limit,pos);
printf("Negitive : %i",neg);
printf("\n***************************************************");
}