Skip to content

Instantly share code, notes, and snippets.

@Zulqurnain
Created September 29, 2013 10:57
Show Gist options
  • Save Zulqurnain/3ad03d692b38875b129f to your computer and use it in GitHub Desktop.
Save Zulqurnain/3ad03d692b38875b129f to your computer and use it in GitHub Desktop.
Write A C++ Code which perform division of two Integers without Using / (divide operator) .
#include <iostream.h>
#inlcude <math.h>
int main(){ // Done By Zulqurnain jutt
double Numerator , Denominator , Result;
cout<<"Enter Numerator :=:"; cin>>Numerator;
cout<<"Enter Denominator :=:"; cin>>Denominator;
Result = Numerator * pow(Denominator,-1);
cout<<"Divide Result :=:"<<Result<<"\n\n\n";
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment