MIPI_AdvancedC_FRTK/Lect1/15_task_6_page_23.c

17 lines
195 B
C
Raw Normal View History

2024-11-14 08:45:50 +03:00
#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;
}