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


Please Help Members By Posting Answers For Below Questions

What is the general form of a C program?

597


What is pointer and structure in c?

574


What is difference between main and void main?

630


What is n in c?

575


What does %d do in c?

546






What is the difference between printf and scanf )?

594


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

758


Where is volatile variable stored?

649


The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.

1065


What are the characteristics of arrays in c?

616


What is typeof in c?

609


Write a c program to demonstrate character and string constants?

1684


How can I read and write comma-delimited text?

621


How do you print only part of a string?

614


What is data structure in c language?

605