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


Please Help Members By Posting Answers For Below Questions

How can a number be converted to a string?

615


What are the three constants used in c?

552


Why do we use namespace feature?

589


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

575


Differentiate between functions getch() and getche().

630






What are the types of c language?

565


Can you please explain the difference between malloc() and calloc() function?

628


Why can't I perform arithmetic on a void* pointer?

641


How can I send mail from within a c program?

590


Explain output of printf("Hello World"-'A'+'B'); ?

984


Explain the process of converting a Tree into a Binary Tree.

2114


Differentiate between Macro and ordinary definition.

739


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures

2748


What does d mean?

595


application attempts to perform an operation?

1499