program to get the remainder and quotant of given two
numbers with out using % and / operators?
Answer Posted / y hussain reddy
void main()
{
int a,b;
int c=0;
printf("nter a,b");
scanf("%d %d ",&a,&b);
while(a>=b)
{ c++;
a=a-b;
}
printf("a/b=%d",c);
printf("a%b=%d",a);
}
| Is This Answer Correct ? | 12 Yes | 7 No |
Post New Answer View All Answers
Is c easier than java?
explain how do you use macro?
What is 2 d array in c?
What is wrong with this program statement? void = 10;
What is the return type of sizeof?
Differentiate between static and dynamic modeling.
Why clrscr is used in c?
Write a program to print fibonacci series using recursion?
Why void is used in c?
Is multithreading possible in c?
Tell me is null always defined as 0(zero)?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
Why is c faster?
Why pointers are used in c?
What are the storage classes in C?