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
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
What is time null in c?
What are qualifiers and modifiers c?
What is meant by preprocessor in c?
What is the difference between array and linked list in c?
What are the 4 types of organizational structures?
What is indirection in c?
Is fortran still used in 2018?
Explain what are preprocessor directives?
What are compound statements?
Why do we write return 0 in c?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
What are the uses of a pointer?
What are extern variables in c?