Showing posts with label bitoperation. Show all posts
Showing posts with label bitoperation. Show all posts
How To Divide Two Number Without Divide / Operator

How To Divide Two Number Without Divide / Operator

#include <iostream> #include <bits/stdc++.h> using namespace std; int add(int a, int b) {   int carry=1,sum;   while(c...
Read More
How To Multiply Two Number Without Multiply * Operator

How To Multiply Two Number Without Multiply * Operator

#include <iostream> #include <bits/stdc++.h> using namespace std; int mul(int a, int b) {     int carry=1,sum;     whi...
Read More
How To Subtract Two Number Without Minus - Operator

How To Subtract Two Number Without Minus - Operator

#include<iostream> #include<stdio.h> using namespace std; int main() { int a,b,carry=1,sum; scanf("%d %d",...
Read More