#include int main(void) { int i, n; printf("Enter an integer: "); scanf("%d", &n); i = 1; while ( i < n) i = i * 2; printf("The smallest power of 2 that is greater than or equal to a number %d is %d\n", n, i); return 0; }