#include <stdio.h> int main() { int N; int bit_position = 5; // 0-based index scanf("%d", &N); N = N ^ (1 << bit_position); printf("%d\n", N); return 0; }
Test Cases
Test Results
Input
8
Expected Output
40