Professional Documents
Culture Documents
h>
void main()
{int a;
double float byte,kil,meg,geg,ter,hex;
char d;
printf("enter the type of area\n");
scanf("%c",&d);
if (d=='b')
{
kil=a/1024;
meg=a/(1024*1024);
geg=a/(1024*1024*1024);
ter=a/(1024*1024*1024*1024);
hex=a/(1024*1024*1024*1024*1024);
printf("your area in \n kilo byte is %li \n mega byte is %li \n gega byte is
%li \n tera byte is %li \n hexa byte is %li ",kil,meg,geg,ter,hex);
}
else
{
printf("error");}