Showing posts with label C Programming. Show all posts
Showing posts with label C Programming. Show all posts

Thursday, February 10, 2022

How to convert binary to decimal

Binary to decimal converstion program given code below:

We know that binary digit have only two bit '0' or '1' bit for executing all operatin in computer.
if let have a binary digit : 1011001 
than what will be out of the given binary code in decimal
than follow given code to convert in decimal

Binary to decimal output

Monday, February 7, 2022

Intersection operation perform in c programming

if set A = {2,5,6} and set B = {3,5,2,6}
Than Intersection of A and B is intersection = {2,5,6}

Output of the intersection operation


Intersection output


This code to perform Intersection operation in C programming ๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡



Union Operation perform in c programming

if set A = {2,5,6} and set B = {3,5,2,6}
Than union of set A and B is Union = {2,3,5,6}

Output of the Union operation


Union output




This code to perform Union operation๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡




Popular Posts