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 are external variables in c?

549


Is there a way to jump out of a function or functions?

638


praagnovation

1780


What are pointers? Why are they used?

632


Describe wild pointers in c?

644






What is enumerated data type in c?

631


What is difference between arrays and pointers?

584


Can you pass an entire structure to functions?

698


What is the use of extern in c?

651


What functions are used in dynamic memory allocation in c?

599


Do you have any idea how to compare array with pointer in c?

607


How is a null pointer different from a dangling pointer?

559


How can I write a function analogous to scanf?

662


What is the c language function prototype?

649


What is getche() function?

611