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
What are multidimensional arrays?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
What is %s and %d in c?
What are the advantages and disadvantages of a heap?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
write a c program in such a way that if we enter the today date the output should be next day's date.
What is double pointer in c?
How can I call fortran?
Why do we need arrays in c?
What is static and auto variables in c?
How can I call a function with an argument list built up at run time?
How will you find a duplicate number in a array without negating the nos ?
When the macros gets expanded?
What is wrong with this statement? Myname = 'robin';
What is an auto keyword in c?