c program to clear nth bit of the number || Bitwise Operators || Problem Solving ||

#include <stdio.h> int main() {     int num, n, newNum;     printf("Enter any number: ");     scanf("%d", &num);     printf("Enter nth bit to clear (0-31): ");     scanf("%d", &n);     newNum = num & (~(1 << n));     printf("Number before clearing %d bit: %d (in decimal)\n", n, num);     printf("Number after clearing %d bit: %d (in decimal)\n", n, newNum);     return 0; } Logic :-  num&(~(1<<n));

Typing Lessons PART -1

Learning how to type the letters on keyboard effectively and fastly.
The course is for free

1.Open the computer
2.Select start button.
3.select notepad option.
4.press enter.
5.set font size = 12.

Things to remember in mind :

Typing letters one after one 

Lesson 1:
asdf ;lkj asdf ;lkj asdf ;lkj asdf ;lkj asdf ;lkj
asdf ;lkj asdf ;lkj asdf ;lkj asdf ;lkj asdf ;lkj
asdf ;lkj asdf ;lkj asdf ;lkj asdf ;lkj asdf ;lkj
asdf ;lkj asdf ;lkj asdf ;lkj asdf ;lkj asdf ;lkj

Note: Type this lesson for 2 days.



Comments

Popular posts from this blog

Merge Strings Alternatively || Leetcode Solution || Easy Approach || Simple || ✅✅✅✅💯💯💯💯🔥🔥🔥🔥

HOW TO PREPARE FOR JEE MAINS IN HOME EFFECTIVELY

1978. Employees Whose Manager Left the Company || Leetcode SQL solution || simple sql query || 🔥🔥🔥💯💯💯✅✅✅