You are on page 1of 1

#include<stdio.

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);

printf("enter the number of area\n");


scanf("%li",&a);

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");}

You might also like