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
What is the purpose of ftell?
can we implement multi-threads in c.
What should malloc(0) do?
Is c is a middle level language?
Place the #include statement must be written in the program?
What is the use of function in c?
Explain how can I pad a string to a known length?
what is use of malloc and calloc?
When can a far pointer be used?
What is a structure member in c?
What language is c written?
How can I make sure that my program is the only one accessing a file?
write a program to find out prime number using sieve case?
What is an lvalue in c?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?