Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_WARNINGS
- #define _CRT_NONSTDC_NO_DEPRECATE
- #include <stdio.h>
- #include <ctype.h>
- #include <string.h>
- #include <math.h>
- #include <stdlib.h>
- #include <stdbool.h>
- #include <limits.h>
- #include <time.h>
- #include <stddef.h>
- #include <float.h>
- #define N 10000000
- #define PI 3.14
- int main()
- {
- long a, b, sum = 1, tmp = 0;
- scanf("%ld%ld", &a, &b);
- while (a + tmp <= b)
- {
- sum *= (a + tmp);
- tmp += 1;
- }
- if (sum < 0)
- {
- printf("Negative");
- return 0;
- }
- if (sum == 0)
- {
- printf("Zero");
- return 0;
- }
- if (sum > 0)
- {
- printf("Positive");
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement