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
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
Explain what are preprocessor directives?
develop algorithms to add polynomials (i) in one variable
Write a C program to count the number of email on text
What is unsigned int in c?
How can you pass an array to a function by value?
What is a pointer variable in c language?
Which header file is essential for using strcmp function?
Can 'this' pointer by used in the constructor?
What is string concatenation in c?
Why c is known as a mother language?
How does #define work?
How can you access memory located at a certain address?
How can I generate floating-point random numbers?
Simplify the program segment if X = B then C ← true else C ← false