#include <stdio.h>
#include <conio.h>
int main ()
{
unsigned int base=32, osn = 0, mask, razr = 0;
int chislo;
char str[]="0123456789ABCDEF";
printf("Enter Number:");
scanf("%d",&chislo);
while (osn!=2 && osn!=8 && osn!=16)
{
printf("Enter SS:");
scanf("%d",&osn);
}
mask=1;
while (base > razr)
{
razr=razr+mask;
}
while ( razr!=0 )
{
razr=razr-mask;
printf("%c",str[(chislo>>razr)&mask]);
}
getch();
}