MIPI_AdvancedC_FRTK/Lect1/15_task_6_page_23.c
2024-11-14 08:45:50 +03:00

17 lines
195 B
C

#include <stdio.h>
#include <stdint.h>
int div1IfEven(int a) {
return a - !(a&0x1);
}
int main ()
{
int32_t a, res;
scanf("%d",&a);
res = div1IfEven(a);
printf("%d", res);
return 0;
}