13 lines
220 B
C
13 lines
220 B
C
|
#include <stdio.h>
|
||
|
#include <inttypes.h>
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
unsigned int i,n, pow2=1;
|
||
|
scanf("%u",&n);
|
||
|
for(i=0; pow2<n; i++)
|
||
|
pow2 <<= 1; // pow2 = pow2 * 2
|
||
|
printf("%u %d\n",pow2,i);
|
||
|
return 0;
|
||
|
}
|