answersLogoWhite

0


Best Answer

int divide1(int a,int b)

{

int t=1;

while(b*t<=a)

{

t++;

}

return t-1;

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to divide 2 numbers without using the division operator?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How a program in c that will add 2 numbers without using any operator?

Not possible. Let's not forget than in C the followings are all operators:+, -+=, -=++, --=&, *, []function-call


What is 5614148565285614 514514581451451454?

They are two large numbers, without any operator between them.


How a program in c that will add 2 numbers without using any plus operator?

int main() { int a=10,b=20; while(a--) b++; printf("%d",b); } or: a -= -b;


What is 329.99399.99?

It is two (or more) numbers which have been concatenated (run into one another without ant operator).


Which set of numbers is closed under the operation of division?

There are several; the most well-known are probably the set of rational numbers without zero, the set of real numbers without zero, and the set of complex numbers without zero.


2.43 2.43 plus 2.43 7.57 2 plus 7.57 7.57?

some of those numbers are just chilling and not sure what they are doing without an operator... 2.43+2.43 = 4.86 2 + 7.57 = 9.57 i only did the numbers with an operator


What school in division I FBS college football has the oldest program without a national title?

Wake Forest


Is Division closed in Real?

No, since you can't divide by zero. On the other hand, the set of real numbers without zero is closed under division.


Write a c program to find the product of two numbers without using operator?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { int a,b,multi; clrscr(); printf("enter a value for a and b"); scanf("%d%d",&amp;a,&amp;b); multi=a*b; printf("the result is %d", multi); getch() }


How can you accept sum and print numbers without creating variables?

It is very easy. The program begins here..... /*Program to sum and print numbers without creating variables*/ #include&lt;stdio.h&gt; main() { clrscr(); printf("%d+%d=%d",5,2,5+2); getch(); } /*Program ends here*/ Now just by changing the numbers in the "printf" statement we can add, subtract, multiply and divide the numbers without using variables. Hence the problem is solved..........


How do you compare two numbers without using any operators in c?

You cannot compare 2 numbers without using relational operators. Certainly, you could subtract them, but you still need to test the result, and that is a relational operator in itself.


What is even numbers chart?

an even numbers are numbers that can be division by 2 without a remainder