Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int a, i, z;
- unsigned int b;
- short int c;
- unsigned short int d;
- long int e;
- unsigned long int f;
- scanf("%d %u %hd %hu %ld %lu", &a, &b, &c, &d, &e, &f);
- z = 1;
- for (i=1; i<=a; i++)
- {
- z = z*i;
- }
- printf("%d\n", z);
- z = 1;
- for (i=1; i<=b; i++)
- {
- z = z*i;
- }
- printf("%u\n", z);
- z = 1;
- for (i=1; i<=c; i++)
- {
- z = z*i;
- }
- printf("%hd\n", z);
- z = 1;
- for (i=1; i<=d; i++)
- {
- z = z*i;
- }
- printf("%hu\n", z);
- z = 1;
- for (i=1; i<=e; i++)
- {
- z = z*i;
- }
- printf("%ld\n", z);
- z = 1;
- for (i=1; i<=f; i++)
- {
- z = z*i;
- }
- printf("%lu\n", z);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement