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

compilation error i is not declared as int

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are multidimensional arrays?

656


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2415


What is %s and %d in c?

594


What are the advantages and disadvantages of a heap?

716


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2008






write a c program in such a way that if we enter the today date the output should be next day's date.

1685


What is double pointer in c?

593


How can I call fortran?

646


Why do we need arrays in c?

589


What is static and auto variables in c?

570


How can I call a function with an argument list built up at run time?

643


How will you find a duplicate number in a array without negating the nos ?

1650


When the macros gets expanded?

792


What is wrong with this statement? Myname = 'robin';

827


What is an auto keyword in c?

645