You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
342 B

12 months ago
int enc(int a)
{
if(a>25)
a=a+60;
else
{
a=a-15;
}
return a;
}
int dec(int a)
{
if (a>85)
a=a-59;
else
{
a=a+14;
}
return a;
}
int main()
{
int a;
a=400;
int res;
res=enc(a);
res=dec(res);
putint(res);
res = 10;
putch(res);
return 0;
}