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
praagnovation
Is using exit() the same as using return?
What is data structure in c programming?
I heard that you have to include stdio.h before calling printf. Why?
Who invented bcpl language?
What is the difference between Printf(..) and sprint(...) ?
Do pointers need to be initialized?
Describe dynamic data structure in c programming language?
What is the role of this pointer?
Difference between macros and inline functions? Can a function be forced as inline?
What does static variable mean in c?
Explain the priority queues?
develop algorithms to add polynomials (i) in one variable
Which one would you prefer - a macro or a function?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?