Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- void main (void)
- {
- int bits;
- printf("Number of bits:");
- scanf("%i", &bits);
- printf("Largest size integer in a variable of size %i: %lf", bits, powf(2,bits)-1);
- return (0);
- }
Add Comment
Please, Sign In to add comment