Divide Two Numbers without Using Divide Operator in C++
#include<iostream>
using namespace std;
main()
{
int a,b,c=0;
cout<<"Enter Two numbers ";
cin>>a>>b;
while(a>=b)
{
a=a-b;
c++;
}
cout<<c;
}
This blog is about Programming Languages, Logical C++ Programs,C++ Projects, Database Projects, Data Structure Projects, Data Structure, Software Cracks, Software Keys,Final Year Projects
0 comments:
Post a Comment