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

Can true be a variable name in c?

560


I need previous papers of CSC.......plz help out by posting them.......

1818


What are the types of data types and explain?

674


What is the scope of static variable in c?

537


What is a program flowchart?

605






Explain modulus operator. What are the restrictions of a modulus operator?

600


Is main is user defined function?

597


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1306


Write programs for String Reversal & Palindrome check

599


What are local variables c?

552


How can I write functions that take a variable number of arguments?

627


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

980


Explain how does flowchart help in writing a program?

635


Why n++ execute faster than n+1 ?

1852


Is c is a procedural language?

601