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 ?    20 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of volatile in c language?

674


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

669


Explain the use of bit fieild.

728


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1538


Is array a primitive data type in c?

591






hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1681


How can you tell whether two strings are the same?

844


Can we initialize extern variable in c?

649


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1480


What's the right way to use errno?

637


What is operator promotion?

643


Why is c so powerful?

703


Is c object oriented?

553


What are the advantages of c language?

679


How does pointer work in c?

641