Untitled
#include <stdio.h> #include <math.h> int main() { int n; scanf("%d", &n); int i = 0, temp1 = 2, temp2 = 3, current = 0; int end = 0; while (current <= n) { if (n == 0 || n == 1 || n == 2 || n == 3 || n == current) { printf("True"); end = 1; } current = temp1 + temp2; temp1 = temp2; temp2 = current; } if (end == 0) { printf("False"); } return 0; }