i=20,k=0;
for(j=1;j<i;j=1+4*(i/j))
{
k+=j<10?4:3;
}
printf("%d", k);
Answer Posted / vishal bhardwaj
ans is : 4
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Are negative numbers true in c?
Write a program to check prime number in c programming?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
What is the use of linkage in c language?
What is sizeof array?
What are the parts of c program?
State the difference between realloc and free.
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
How can I pad a string to a known length?
What is atoi and atof in c?
What does main () mean in c?
write a programming in c to find the sum of all elements in an array through function.
What is difference between far and near pointers?
What is pointers in c?
Difference between MAC vs. IP Addressing