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
What is the general form of a C program?
What is pointer and structure in c?
What is difference between main and void main?
What is n in c?
What does %d do in c?
What is the difference between printf and scanf )?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Where is volatile variable stored?
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.
What are the characteristics of arrays in c?
What is typeof in c?
Write a c program to demonstrate character and string constants?
How can I read and write comma-delimited text?
How do you print only part of a string?
What is data structure in c language?