Created
September 29, 2013 10:57
-
-
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) .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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