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
What does *p++ do?
What does main () mean in c?
Can you please explain the difference between exit() and _exit() function?
what is a constant pointer in C
How does placing some code lines between the comment symbol help in debugging the code?
What is volatile c?
What is break in c?
What are multidimensional arrays?
How do you determine the length of a string value that was stored in a variable?
write a program to generate address labels using structures?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
What is putchar() function?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
Which of these functions is safer to use : fgets(), gets()? Why?
Tell me can the size of an array be declared at runtime?