i=20,k=0;
for(j=1;j<i;j=1+4*(i/j))
{
k+=j<10?4:3;
}

printf("%d", k);

Answer Posted / valli

k=4

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a stream?

663


Explain is it valid to address one element beyond the end of an array?

750


What is external variable in c?

627


How can I recover the file name given an open stream or file descriptor?

606


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

3682






What is the return type of sizeof?

607


What is adt in c programming?

633


How can you be sure that a program follows the ANSI C standard?

1144


Why should I use standard library functions instead of writing my own?

693


Can you assign a different address to an array tag?

710


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

743


Explain void pointer?

599


What is the function of this pointer?

691


How can I manipulate individual bits?

617


What is register variable in c language?

614