Write a C program to input any number from user and set nth bit of the given number as 1. How to set nth bit of a given number using bitwise operator in C programming. Setting nth bit of a given number using bitwise operator.
Example
Input
Input number: 12 Input nth bit to set: 0
Output
Number after setting nth bit: 13 in decimal