i=20,k=0;
for(j=1;j<i;j=1+4*(i/j))
{
k+=j<10?4:3;
}
printf("%d", k);
Answer Posted / guest
compilation error i is not declared as int
| Is This Answer Correct ? | 5 Yes | 7 No |
Post New Answer View All Answers
How can I call a function with an argument list built up at run time?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
What is dynamic variable in c?
What is the size of enum in c?
Explain what header files do I need in order to define the standard library functions I use?
Tell me can the size of an array be declared at runtime?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
What is non linear data structure in c?
What does typeof return in c?
What are the different types of control structures?
Explain the Difference between the New and Malloc keyword.
What does == mean in texting?
What are global variables and how do you declare them?
Is fortran still used in 2018?