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
Why void main is used in c?
What are the properties of union in c?
Is Exception handling possible in c language?
Can 'this' pointer by used in the constructor?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
What is difference between structure and union in c?
What is cohesion and coupling in c?
What is the use of static variable in c?
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.
What is a memory leak? How to avoid it?
What is wrong with this program statement?
What is the size of empty structure in c?
What is the use of #include in c?
Can math operations be performed on a void pointer?
Which type of language is c?