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

printf("%d", k);

Answer Posted / suchita

k=5 bcoz the statement k+=j<10?4:3;
here k+ increaments the value then assign to the k

Is This Answer Correct ?    1 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of ftell?

617


can we implement multi-threads in c.

681


What should malloc(0) do?

625


Is c is a middle level language?

610


Place the #include statement must be written in the program?

584






What is the use of function in c?

727


Explain how can I pad a string to a known length?

669


what is use of malloc and calloc?

1397


When can a far pointer be used?

607


What is a structure member in c?

562


What language is c written?

589


How can I make sure that my program is the only one accessing a file?

694


write a program to find out prime number using sieve case?

1655


What is an lvalue in c?

705


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

1691