i=20,k=0;
for(j=1;j<i;j=1+4*(i/j))
{
k+=j<10?4:3;
}
printf("%d", k);
Answer Posted / guest
k=4
| Is This Answer Correct ? | 21 Yes | 3 No |
Post New Answer View All Answers
Write a program to implement queue.
What is wrong in this statement?
What is the benefit of using #define to declare a constant?
What are the advantages of using macro in c language?
Why we use stdio h in c?
Do you know null pointer?
Can a variable be both static and volatile in c?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
Explain what is the benefit of using const for declaring constants?
Is null valid for pointers to functions?
what does static variable mean?
Explain how can I pad a string to a known length?
What is a structure and why it is used?
Distinguish between actual and formal arguments.
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above